patch for gtksheet
"John Cupitt" <[email protected]> Thu, 8 Jun 2006 16:00:30 +0100
| Newsgroups | gmane.comp.scigraphica.gtkextra |
|---|---|
| Message-ID | <[email protected]> |
I noticed 2.1.1 gtksheet is freeing pixmaps with g_free(). For
example, in gtk_sheet_make_backing_pixmap() it has:
g_free(sheet->pixmap);
sheet->pixmap = gdk_pixmap_new (sheet->sheet_window,
width, height,
-1);
This used to sort-of work, but with recent glib changes it now crashes
horribly on my ubuntu dapper machine. I changed it to the correct:
g_object_unref(sheet->pixmap);
(there's another g_free(->pixmap) in gtk_sheet_unrealize () that also
needs changing) and all seems well now. I can run my app in valgrind
without problems.
John