diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-13 15:54:18 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-13 15:54:18 -0500 |
commit | c102fa59f4f45f60f660e37e16ba6e88a01b35cd (patch) | |
tree | c2fdaf9a909fd1f3c50f250bcd3dc77d8eade8ad /src/application-service-watcher.c | |
parent | 2c9a58b193daa011a2c72e01626711b7444e45e1 (diff) | |
parent | fed02bf9683b491b5db0196495377671594de98b (diff) | |
download | ayatana-indicator-application-c102fa59f4f45f60f660e37e16ba6e88a01b35cd.tar.gz ayatana-indicator-application-c102fa59f4f45f60f660e37e16ba6e88a01b35cd.tar.bz2 ayatana-indicator-application-c102fa59f4f45f60f660e37e16ba6e88a01b35cd.zip |
* New upstream release.
* Fix a dbus memory leak. (LP: #953585)
* Fix potential integer overflow (LP: #944234)
Diffstat (limited to 'src/application-service-watcher.c')
-rw-r--r-- | src/application-service-watcher.c | 8 |
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; |