diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-05-29 14:54:35 -0400 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-05-29 14:54:35 -0400 |
commit | 0d3ebcb5cf74eef75f2153400b7b8a1d450573a5 (patch) | |
tree | 34e67cd5c9423d6127e5bb02282a4e4d9cd6ba74 | |
parent | 9627530cdaeb8d0ad9984f55f6fb0804740a1343 (diff) | |
download | libayatana-indicator-0d3ebcb5cf74eef75f2153400b7b8a1d450573a5.tar.gz libayatana-indicator-0d3ebcb5cf74eef75f2153400b7b8a1d450573a5.tar.bz2 libayatana-indicator-0d3ebcb5cf74eef75f2153400b7b8a1d450573a5.zip |
indicator-ng: fix crash
-rw-r--r-- | libindicator/indicator-ng.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libindicator/indicator-ng.c b/libindicator/indicator-ng.c index fbf1e97..88db31c 100644 --- a/libindicator/indicator-ng.c +++ b/libindicator/indicator-ng.c @@ -256,15 +256,12 @@ indicator_ng_update_entry (IndicatorNg *self) state = g_action_group_get_action_state (self->actions, self->header_action); if (state && g_variant_is_of_type (state, G_VARIANT_TYPE ("(sssb)"))) { - gchar *iconstr = NULL; + const gchar *iconstr = NULL; g_variant_get (state, "(&s&s&sb)", &label, &iconstr, &accessible_desc, &visible); if (iconstr) - { - icon = g_variant_ref_sink (g_variant_new_string (iconstr)); - g_free (iconstr); - } + icon = g_variant_ref_sink (g_variant_new_string (iconstr)); } else if (state && g_variant_is_of_type (state, G_VARIANT_TYPE ("a{sv}"))) { |