#include <gtk/gtk.h>

GtkWidget *win = NULL;

gboolean leak_memory(gpointer user_data)
{
   gtk_widget_queue_draw(win);
   return TRUE;
}

int main(int argc, char **argv) {
   gtk_init(&argc, &argv);
   win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
   g_timeout_add(100, leak_memory, 0);
   gtk_widget_show_all(win);
   gtk_main();
   return 0;
}
