title: Memory leak in GTK under Windows 7 in gtk_widget_queue_draw
body: <p>The following GTK program:</p>
  
  <pre><code>#include &lt;gtk/gtk.h&gt;
  GtkVBox *vbox;
  GtkWindow *win;
  gboolean Timer (gpointer user_data)
  {
     gtk_widget_queue_draw (GTK_WIDGET (vbox));
     return 1;
  }
  int main(int argc, char **argv)
  {
     gtk_init(&amp;argc, &amp;argv);
     win = (GtkWindow*)gtk_window_new(GTK_WINDOW_TOPLEVEL);
     vbox = (GtkVBox*)gtk_vbox_new(TRUE, 1);
     gtk_container_add(GTK_CONTAINER(win), GTK_WIDGET(vbox));
     g_timeout_add (200, Timer, 0);
     gtk_widget_show_all(GTK_WIDGET(win));
     gtk_main();
     return 0;
  }
  </code></pre>
  
  <p>Leaks under Windows 7 64-bit when compiled using gcc 4.5.2 as the task manager shows. It does not leak when compiled under Windows XP 32-bit. The program does nothing. It creates a window, put there are box and then calls to gtk_widget_queue_draw from a timer each 200ms.</p>
  
  <p>Here is a batch file to compile and link the test. The variable GTK is set to directory containing the binary distribution of GTK. E.g. 2.24.10 in this case.</p>
  
  <pre><code>set GTK=c:/temp/GTK
  gcc -c -mms-bitfields -I%gtk%/lib/gtk-2.0/include -I%gtk%/lib/gdk-2.0/include -I%gtk%/lib/glib-2.0/include -I%gtk%/include -I%gtk%/include/atk-1.0 -I%gtk%/include/gdk-pixbuf-2.0 -I%gtk%/include/cairo -I%gtk%/include/pango-1.0 -I%gtk%/include/gio-win32-2.0 -I%gtk%/include/glib-2.0 -I%gtk%/include/gtk-2.0 test.c
  gcc test.o --mwindows -Wl,-luuid -L%gtk%/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -lgobject-2.0 -lglib-2.0 -o test.exe
  </code></pre>
  
  <p>Any thoughts? What is broken here GTK, gcc, MinGW? Some compiler/linker options missed?</p>