GNOME Bugzilla – Bug 313463
Crash when closing gnumeric (`<invalid>' in cast to `GtkAdjustment)
Last modified: 2005-08-15 17:50:45 UTC
insert a default xy graph. open guru for this graph. Add a title. Close gnumeric, ignore unsaved changes -> crash. Here's the backtrace: (lt-gnumeric:28362): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkAdjustment' (lt-gnumeric:28362): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkAdjustment' Program received signal SIGSEGV, Segmentation fault.
+ Trace 62434
Thread NaN (LWP 28362)
Displaying any property page with a data allocator leads to the same segfault. This does not occur in abiword where the allocator is just a GtkEntry.
Created attachment 50725 [details] [review] it was a reference problem Each time we do something like: g_object_get (o1, "some-object" &o2, NULL); we must call g_object_unref (o2); Otherwise the ref_count of the object will grow.
Please apply. That now makes it quite clear that something is leaking. I think text_layout_init keeps a ref to "gui" in state->text_layout_gui but nothing unrefs that.
Fixed in cvs. (Well, leak is not, but we'll get to that one way or another.)