Fix handling of GObjects when deleting a report

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18104 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2009-06-05 23:53:53 +00:00
parent 2b5c814b50
commit 736f3b5f22
2 changed files with 4 additions and 1 deletions

View File

@ -191,7 +191,6 @@ gnc_html_webkit_dispose( GObject* obj )
if( priv->web_view != NULL ) {
gtk_container_remove( GTK_CONTAINER(priv->base.container),
GTK_WIDGET(priv->web_view) );
g_object_unref( G_OBJECT(priv->web_view) );
priv->web_view = NULL;
}

View File

@ -380,6 +380,10 @@ gnc_html_destroy( GncHtml* self )
g_return_if_fail( self != NULL );
g_return_if_fail( GNC_IS_HTML(self) );
if( g_object_is_floating( G_OBJECT(self) ) ) {
(void)g_object_ref_sink( G_OBJECT(self) );
}
g_object_unref( G_OBJECT(self) );
}