mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
2b5c814b50
commit
736f3b5f22
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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) );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user