aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-image-helper.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-29 13:52:21 -0700
committerCharles Kerr <charles.kerr@canonical.com>2012-03-29 13:52:21 -0700
commit50933a932bc679193a2be80eb304a0c6ac3731cd (patch)
treee785fcde4edc18f2d2a26d812a1c21bca1307667 /libindicator/indicator-image-helper.c
parent452f2ab66a9d675081acf4e2d726075b9c572359 (diff)
parent4ecaca4861ec00e19936e9655de38c118bdc9a62 (diff)
downloadlibayatana-indicator-50933a932bc679193a2be80eb304a0c6ac3731cd.tar.gz
libayatana-indicator-50933a932bc679193a2be80eb304a0c6ac3731cd.tar.bz2
libayatana-indicator-50933a932bc679193a2be80eb304a0c6ac3731cd.zip
* New upstream release.
* Fix a leaked GError (LP: #965459) * Fix memory leak when the proxy's name changes.
Diffstat (limited to 'libindicator/indicator-image-helper.c')
-rw-r--r--libindicator/indicator-image-helper.c1
1 files changed, 1 insertions, 0 deletions
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;
}