diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-16 15:39:11 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-16 15:39:11 -0500 |
commit | 742fa8cb32af80698ca9e03dafa10a2d9f1d4701 (patch) | |
tree | 7c10502010a40b2359db27ac5711c4bc82beecad /libindicator/indicator-service-manager.c | |
parent | 18d670b206e2c4292451cb17602d209a628a7e21 (diff) | |
download | libayatana-indicator-742fa8cb32af80698ca9e03dafa10a2d9f1d4701.tar.gz libayatana-indicator-742fa8cb32af80698ca9e03dafa10a2d9f1d4701.tar.bz2 libayatana-indicator-742fa8cb32af80698ca9e03dafa10a2d9f1d4701.zip |
fix minor memory leak when the proxy name changes
Diffstat (limited to 'libindicator/indicator-service-manager.c')
-rw-r--r-- | libindicator/indicator-service-manager.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libindicator/indicator-service-manager.c b/libindicator/indicator-service-manager.c index f58c148..33b0557 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); - const gchar * new_name = NULL; - const gchar * prev_name = NULL; + gchar * new_name = NULL; + 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,6 +571,9 @@ service_proxy_name_changed (GDBusConnection * connection, const gchar * sender_n } } + g_free (new_name); + g_free (prev_name); + return; } |