Fixes a possible crash when closing windows.
authorSergio Villar Senin <svillar@igalia.com>
Mon, 19 Jan 2009 12:49:46 +0000 (12:49 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 19 Jan 2009 12:49:46 +0000 (12:49 +0000)
Unrefs the weak reference from the dimming rules group to the windows

pmo-trunk-r7180

src/modest-dimming-rules-group.c

index e848ae9..c275a28 100644 (file)
@@ -128,6 +128,8 @@ modest_dimming_rules_group_finalize (GObject *obj)
 
        priv = MODEST_DIMMING_RULES_GROUP_GET_PRIVATE(obj);
 
+       g_object_weak_unref (G_OBJECT (priv->window), on_window_destroy, obj);
+
        if (priv->name != NULL)
                g_free(priv->name);