summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/other/gail/gailimage.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/other/gail/gailimage.c b/modules/other/gail/gailimage.c
index 38d0c587c7..da8698551d 100644
--- a/modules/other/gail/gailimage.c
+++ b/modules/other/gail/gailimage.c
@@ -146,9 +146,11 @@ gail_image_get_name (AtkObject *accessible)
g_free (image_accessible->stock_name);
image_accessible->stock_name = NULL;
+ if (gtk_image_get_storage_type (image) != GTK_IMAGE_STOCK)
+ return NULL;
+
gtk_image_get_stock (image, &stock_id, NULL);
- if (gtk_image_get_storage_type (image) != GTK_IMAGE_STOCK ||
- stock_id == NULL)
+ if (stock_id == NULL)
return NULL;
if (!gtk_stock_lookup (stock_id, &stock_item))