From bb571a4f91682d5d2dfdccfee3826f73ac5457f4 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 11 Apr 2012 01:01:51 -0500 Subject: in indicator_image_helper_update(), test the image argument with GTK_IS_IMAGE before using it. --- libindicator/indicator-image-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libindicator/indicator-image-helper.c b/libindicator/indicator-image-helper.c index 6ad2a44..63488a1 100644 --- a/libindicator/indicator-image-helper.c +++ b/libindicator/indicator-image-helper.c @@ -143,7 +143,7 @@ indicator_image_helper_update (GtkImage * image, const gchar * name) { g_return_if_fail(name != NULL); g_return_if_fail(name[0] != '\0'); - g_return_if_fail(image != NULL); + g_return_if_fail(GTK_IS_IMAGE(image)); gboolean seen_previously = FALSE; /* Build us a GIcon */ -- cgit v1.2.3