projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
789c4ee
)
Added a missing if, priv->window could be null
author
Sergio Villar Senin
<svillar@igalia.com>
Wed, 21 Jan 2009 16:15:06 +0000
(16:15 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Wed, 21 Jan 2009 16:15:06 +0000
(16:15 +0000)
pmo-trunk-r7222
src/modest-dimming-rules-group.c
patch
|
blob
|
history
diff --git
a/src/modest-dimming-rules-group.c
b/src/modest-dimming-rules-group.c
index
c275a28
..
4b3fd27
100644
(file)
--- a/
src/modest-dimming-rules-group.c
+++ b/
src/modest-dimming-rules-group.c
@@
-128,7
+128,8
@@
modest_dimming_rules_group_finalize (GObject *obj)
priv = MODEST_DIMMING_RULES_GROUP_GET_PRIVATE(obj);
priv = MODEST_DIMMING_RULES_GROUP_GET_PRIVATE(obj);
- g_object_weak_unref (G_OBJECT (priv->window), on_window_destroy, obj);
+ if (priv->window)
+ g_object_weak_unref (G_OBJECT (priv->window), on_window_destroy, obj);
if (priv->name != NULL)
g_free(priv->name);
if (priv->name != NULL)
g_free(priv->name);