[StShadow] Add reference counting

If a shadow property is inherited from a parent, multiple StThemeNodes
share a common StShadow. It would be possible to use st_shadow_copy()
for this purpose, but proper reference counting is nicer.

https://bugzilla.gnome.org/show_bug.cgi?id=624384
This commit is contained in:
Florian Müllner
2010-09-01 11:16:31 +02:00
parent c3b88d4113
commit e942444630
3 changed files with 27 additions and 21 deletions

View File

@ -99,7 +99,7 @@ st_theme_node_finalize (GObject *object)
if (node->shadow)
{
st_shadow_free (node->shadow);
st_shadow_unref (node->shadow);
node->shadow = NULL;
}