Memory Leak
- From: Russell Strong <rstrong bigpond net au>
- To: gtk-devel-list gnome org
- Subject: Memory Leak
- Date: 27 Jul 2001 19:48:04 -0400
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]