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 | |
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')
-rw-r--r-- | src/Makefile.in | 7 | ||||
-rw-r--r-- | src/application-service-watcher.c | 8 | ||||
-rw-r--r-- | src/generate-id.c | 8 |
3 files changed, 15 insertions, 8 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index 310a47c..e2fcae6 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -56,8 +56,11 @@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ libexec_PROGRAMS = indicator-application-service$(EXEEXT) subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4/gcov.m4 $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/m4/gcov.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d 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; diff --git a/src/generate-id.c b/src/generate-id.c index 14d762e..9515860 100644 --- a/src/generate-id.c +++ b/src/generate-id.c @@ -26,10 +26,10 @@ with this program. If not, see <http://www.gnu.org/licenses/>. guint32 generate_id (const AppIndicatorCategory catenum, const gchar * id) { - guchar category = 0; - guchar first = 0; - guchar second = 0; - guchar third = 0; + guint32 category = 0; + guint32 first = 0; + guint32 second = 0; + guint32 third = 0; switch (catenum) { case APP_INDICATOR_CATEGORY_OTHER: |