aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/Makefile.in1
-rw-r--r--libindicator/indicator-image-helper.c1
-rw-r--r--libindicator/indicator-service-manager.c7
3 files changed, 7 insertions, 2 deletions
diff --git a/libindicator/Makefile.in b/libindicator/Makefile.in
index a32cc29..6891b1b 100644
--- a/libindicator/Makefile.in
+++ b/libindicator/Makefile.in
@@ -259,6 +259,7 @@ abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
+ac_aux_dir = @ac_aux_dir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
diff --git a/libindicator/indicator-image-helper.c b/libindicator/indicator-image-helper.c
index 23b08d0..6ad2a44 100644
--- a/libindicator/indicator-image-helper.c
+++ b/libindicator/indicator-image-helper.c
@@ -74,6 +74,7 @@ refresh_image (GtkImage * image)
if (pixbuf == NULL) {
g_warning("Unable to load icon from file '%s' because: %s", icon_filename, error == NULL ? "I don't know" : error->message);
+ g_clear_error (&error);
gtk_image_clear(image);
return;
}
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;
}