Squash epic memory leak

StThemeNode holds a reference to its parent, but we never released
that reference.  This could cause us to hold onto whole chains
of theme nodes with rather dire memory usage implications.

Also move the other g_object_unref into _dispose.

https://bugzilla.gnome.org/show_bug.cgi?id=614660
This commit is contained in:
Colin Walters
2010-04-02 09:39:05 -04:00
parent 1ddb775d59
commit 44ede8c942
2 changed files with 36 additions and 6 deletions

View File

@ -253,6 +253,7 @@ st_widget_dispose (GObject *gobject)
if (priv->theme_node)
{
g_object_run_dispose (G_OBJECT (priv->theme_node));
g_object_unref (priv->theme_node);
priv->theme_node = NULL;
}