diff -up libglade-2.6.2/glade/glade-xml.c.unref libglade-2.6.2/glade/glade-xml.c --- libglade-2.6.2/glade/glade-xml.c.unref 2008-02-19 21:59:52.000000000 -0500 +++ libglade-2.6.2/glade/glade-xml.c 2008-02-19 22:00:10.000000000 -0500 @@ -256,7 +256,7 @@ glade_xml_new_from_buffer(const char *bu if( !glade_xml_construct_from_buffer(self, buffer, size, root, domain) ) { /* Clean up, the parser was unable to load the object */ - g_free(self); + g_object_unref(self); return NULL; }