diff options
author | Hernando Torque <sirius@sonnenkinder.org> | 2012-03-26 15:35:57 +0200 |
---|---|---|
committer | Hernando Torque <sirius@sonnenkinder.org> | 2012-03-26 15:35:57 +0200 |
commit | 3440ebedbc55382f36b9b74eab08c98d99ba206d (patch) | |
tree | 9033394a2a884a32fbcff92ec6857d672189b75a | |
parent | 18d670b206e2c4292451cb17602d209a628a7e21 (diff) | |
download | libayatana-indicator-3440ebedbc55382f36b9b74eab08c98d99ba206d.tar.gz libayatana-indicator-3440ebedbc55382f36b9b74eab08c98d99ba206d.tar.bz2 libayatana-indicator-3440ebedbc55382f36b9b74eab08c98d99ba206d.zip |
Free GError.
-rw-r--r-- | libindicator/indicator-image-helper.c | 3 |
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; } |