From 3440ebedbc55382f36b9b74eab08c98d99ba206d Mon Sep 17 00:00:00 2001 From: Hernando Torque Date: Mon, 26 Mar 2012 15:35:57 +0200 Subject: Free GError. --- libindicator/indicator-image-helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libindicator/indicator-image-helper.c b/libindicator/indicator-image-helper.c index 23b08d0..5d2ff76 100644 --- a/libindicator/indicator-image-helper.c +++ b/libindicator/indicator-image-helper.c @@ -74,6 +74,9 @@ 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); + if (error != NULL) { + g_error_free(error); + } gtk_image_clear(image); return; } -- cgit v1.2.3