diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-04-02 08:56:49 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-04-02 08:56:49 -0500 |
commit | 96c35f0bf6a04ab18ad9b558ac4f4c9ba73d6c59 (patch) | |
tree | b4a5da1895f4185fcc7ca6b66066cd22438919e5 /libindicator | |
parent | 5a839c4176325651423480b7f9770f959bf37f32 (diff) | |
parent | a9c0407ec259017874929c24ec1fa5ad28ac35a8 (diff) | |
download | libayatana-indicator-96c35f0bf6a04ab18ad9b558ac4f4c9ba73d6c59.tar.gz libayatana-indicator-96c35f0bf6a04ab18ad9b558ac4f4c9ba73d6c59.tar.bz2 libayatana-indicator-96c35f0bf6a04ab18ad9b558ac4f4c9ba73d6c59.zip |
When using g_variant_get("&s...", &string), the string must not be free'd.
Diffstat (limited to 'libindicator')
-rw-r--r-- | libindicator/indicator-service-manager.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libindicator/indicator-service-manager.c b/libindicator/indicator-service-manager.c index 33b0557..f58c148 100644 --- a/libindicator/indicator-service-manager.c +++ b/libindicator/indicator-service-manager.c @@ -536,8 +536,8 @@ service_proxy_name_changed (GDBusConnection * connection, const gchar * sender_n { IndicatorServiceManagerPrivate * priv = INDICATOR_SERVICE_MANAGER_GET_PRIVATE(user_data); - gchar * new_name = NULL; - gchar * prev_name = NULL; + const gchar * new_name = NULL; + const gchar * prev_name = NULL; g_variant_get(parameters, "(&s&s&s)", NULL, &prev_name, &new_name); if (new_name == NULL || new_name[0] == 0) { @@ -571,9 +571,6 @@ service_proxy_name_changed (GDBusConnection * connection, const gchar * sender_n } } - g_free (new_name); - g_free (prev_name); - return; } |