projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* check for a valid foldername
[modest]
/
src
/
modest-dimming-rule.c
diff --git
a/src/modest-dimming-rule.c
b/src/modest-dimming-rule.c
index
a481ce6
..
778f06d
100644
(file)
--- a/
src/modest-dimming-rule.c
+++ b/
src/modest-dimming-rule.c
@@
-202,11
+202,14
@@
modest_dimming_rule_set_notification (ModestDimmingRule *rule,
priv = MODEST_DIMMING_RULE_GET_PRIVATE(rule);
/* Free previous notification */
priv = MODEST_DIMMING_RULE_GET_PRIVATE(rule);
/* Free previous notification */
- if (priv->notification != NULL)
+ if (priv->notification != NULL) {
g_free(priv->notification);
g_free(priv->notification);
+ priv->notification = NULL;
+ }
/* Set new notification message */
/* Set new notification message */
- priv->notification = g_strdup(notification);
+ if (notification != NULL)
+ priv->notification = g_strdup(notification);
}
gchar *
}
gchar *