aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-12 19:45:39 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-03-12 19:45:39 -0500
commitec7981d1a89f5c4a87b0a3d0e3ca8e07cc178f9a (patch)
treee531318e3b0b73ff19a14ce3ff750401f90e8952 /src
parent29bf37b41e425feac66cd634d78d92c9ebb1af9e (diff)
parent67847ad55bb506b526be3ad43c785bc9eb18a42e (diff)
downloadayatana-indicator-application-ec7981d1a89f5c4a87b0a3d0e3ca8e07cc178f9a.tar.gz
ayatana-indicator-application-ec7981d1a89f5c4a87b0a3d0e3ca8e07cc178f9a.tar.bz2
ayatana-indicator-application-ec7981d1a89f5c4a87b0a3d0e3ca8e07cc178f9a.zip
merge lp:~htorque/indicator-application/fix-small-memleak to fix a small memory leak described in lp bug #953585
Diffstat (limited to 'src')
-rw-r--r--src/application-service-watcher.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/application-service-watcher.c b/src/application-service-watcher.c
index 50b0be9..1c12eee 100644
--- a/src/application-service-watcher.c
+++ b/src/application-service-watcher.c
@@ -249,9 +249,11 @@ _notification_watcher_server_register_status_notifier_item (ApplicationServiceWa
ApplicationServiceWatcherPrivate * priv = APPLICATION_SERVICE_WATCHER_GET_PRIVATE(appwatcher);
if (service[0] == '/') {
+ char * sender = dbus_g_method_get_sender(method);
application_service_appstore_application_add(priv->appstore,
- dbus_g_method_get_sender(method),
+ sender,
service);
+ g_free(sender);
} else {
application_service_appstore_application_add(priv->appstore,
service,
@@ -293,9 +295,11 @@ _notification_watcher_server_x_ayatana_register_notification_approver (Applicati
{
ApplicationServiceWatcherPrivate * priv = APPLICATION_SERVICE_WATCHER_GET_PRIVATE(appwatcher);
+ char * sender = dbus_g_method_get_sender(method);
application_service_appstore_approver_add(priv->appstore,
- dbus_g_method_get_sender(method),
+ sender,
path);
+ g_free(sender);
dbus_g_method_return(method, G_TYPE_NONE);
return TRUE;