aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-image-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'libindicator/indicator-image-helper.c')
-rw-r--r--libindicator/indicator-image-helper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libindicator/indicator-image-helper.c b/libindicator/indicator-image-helper.c
index aff9e39..9f48895 100644
--- a/libindicator/indicator-image-helper.c
+++ b/libindicator/indicator-image-helper.c
@@ -119,7 +119,13 @@ refresh_image (GtkImage * image)
}
if (icon_info != NULL) {
+#if GTK_CHECK_VERSION(3, 8, 0)
+ g_object_unref(icon_info);
+#else
+ /* NOTE: Leaving this in for lower version as it seems
+ the object_unref() doesn't work on earlier versions. */
gtk_icon_info_free (icon_info);
+#endif
}
}