aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHernando Torque <sirius@sonnenkinder.org>2012-03-26 15:35:57 +0200
committerHernando Torque <sirius@sonnenkinder.org>2012-03-26 15:35:57 +0200
commit3440ebedbc55382f36b9b74eab08c98d99ba206d (patch)
tree9033394a2a884a32fbcff92ec6857d672189b75a
parent18d670b206e2c4292451cb17602d209a628a7e21 (diff)
downloadlibayatana-indicator-3440ebedbc55382f36b9b74eab08c98d99ba206d.tar.gz
libayatana-indicator-3440ebedbc55382f36b9b74eab08c98d99ba206d.tar.bz2
libayatana-indicator-3440ebedbc55382f36b9b74eab08c98d99ba206d.zip
Free GError.
-rw-r--r--libindicator/indicator-image-helper.c3
1 files changed, 3 insertions, 0 deletions
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;
}