Memory Leak



This will eat all your memory and drink all your coffee.
It's got me.  Tell me if I'm being stupid ( besides for
writing a program that does nothing ).


#include <gtk/gtk.h>

int idle(gpointer data)
{
    GtkObject *object;
    object = gtk_object_new(gtk_object_get_type(),NULL);
    gtk_object_destroy(object);
}

int main(int argc, char *argv[])
{
    gtk_init(&argc,&argv);
    gtk_idle_add(idle,NULL);
    gtk_main();
    return 0;
}






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]