aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-26 09:24:33 -0700
committerCharles Kerr <charles.kerr@canonical.com>2012-03-26 09:24:33 -0700
commit603ad6ccccf85ee7e9cee45cd9997ac0665f4a0c (patch)
tree689f34151d2598b8b87fe0e5e444369c6caaf3a7
parent742fa8cb32af80698ca9e03dafa10a2d9f1d4701 (diff)
parent3440ebedbc55382f36b9b74eab08c98d99ba206d (diff)
downloadlibayatana-indicator-603ad6ccccf85ee7e9cee45cd9997ac0665f4a0c.tar.gz
libayatana-indicator-603ad6ccccf85ee7e9cee45cd9997ac0665f4a0c.tar.bz2
libayatana-indicator-603ad6ccccf85ee7e9cee45cd9997ac0665f4a0c.zip
merge lp:~htorque/libindicator/fix-small-leak to fix a GError memory leak reported in lp bug #965459
-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;
}