diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2012-03-14 19:28:13 +0100 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2012-03-14 19:28:13 +0100 |
commit | cc14b532413d3119dd42f5d741aa32e9b87a0d48 (patch) | |
tree | d68ec666ae4fe43052d9d8ac57fb1fcf73e6960b /src/application-service-watcher.c | |
parent | 80459a44a331b92190c1caee896eabce77d19a02 (diff) | |
parent | de6e9e4cff040336fd949f99ed3cab829d3f2b10 (diff) | |
download | ayatana-indicator-application-cc14b532413d3119dd42f5d741aa32e9b87a0d48.tar.gz ayatana-indicator-application-cc14b532413d3119dd42f5d741aa32e9b87a0d48.tar.bz2 ayatana-indicator-application-cc14b532413d3119dd42f5d741aa32e9b87a0d48.zip |
* New upstream release:
- Coverity INTEGER_OVERFLOW - CID 10716 (lp: #944234)
- small memory leak caused by inline use of dbus_g_method_get_sender()
(lp: #953585)
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; |