|
From: Adrian F. <fe...@ma...> - 2000-06-29 17:56:35
|
All the memory is deallocated in gtk_sheet_finalize. When you call gtk_object_destroy, object_finalize is not called. You whould use either gtk_object_unref or gtk_widget_unref. I think it should work. Regards, <ADRIAN> On Thu, 29 Jun 2000, Allin Cottrell wrote: > I asked Adrian about this earlier: memprof shows a lot of > leakage after I destroy a window containing an instance of > gtksheet. The setup is (snipping the irrelevant bits): > > sheetwin = gtk_window_new(GTK_WINDOW_TOPLEVEL); > main_vbox = gtk_vbox_new(FALSE, 1); > gtk_container_add(GTK_CONTAINER(sheetwin), main_vbox); > scroller = gtk_scrolled_window_new(NULL, NULL); > gtk_box_pack_start(GTK_BOX(main_vbox), scroller, > TRUE, TRUE, 0); > mysheet = gtk_sheet_new(numrows, numcols, title); > gtk_container_add(GTK_CONTAINER(scroller), mysheet); > > and "sheetwin" has a close button. On close everything > disappears OK, but memprof shows that all the sheet cell > pointers and titles are still allocated. > > Thanks for any help in deallocating this properly. > > Allin Cottrell. > > > > > > > -- > Allin Cottrell > Department of Economics > Wake Forest University, NC > > > _______________________________________________ > Scigraphica-gtkextra mailing list > Sci...@li... > http://lists.sourceforge.net/mailman/listinfo/scigraphica-gtkextra > |