aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-03-23 03:57:25 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-09-05 22:20:10 +0800
commit87842463373ddfbed87fdf27a617f1b35fb35d41 (patch)
treee4b526bee703f7288dfb784ecfea43515efde6fd /libempathy-gtk/empathy-ui-utils.c
parent2ab17b3039eef2c93d6fce4c5bee5f452fa8e8c1 (diff)
downloadgsoc2013-empathy-87842463373ddfbed87fdf27a617f1b35fb35d41.tar
gsoc2013-empathy-87842463373ddfbed87fdf27a617f1b35fb35d41.tar.gz
gsoc2013-empathy-87842463373ddfbed87fdf27a617f1b35fb35d41.tar.bz2
gsoc2013-empathy-87842463373ddfbed87fdf27a617f1b35fb35d41.tar.lz
gsoc2013-empathy-87842463373ddfbed87fdf27a617f1b35fb35d41.tar.xz
gsoc2013-empathy-87842463373ddfbed87fdf27a617f1b35fb35d41.tar.zst
gsoc2013-empathy-87842463373ddfbed87fdf27a617f1b35fb35d41.zip
Cope with gtk_icon_theme_lookup_icon returning NULL
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index d5f63c9e0..8822ccdf6 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -947,6 +947,9 @@ empathy_filename_from_icon_name (const gchar *icon_name,
}
icon_info = gtk_icon_theme_lookup_icon (icon_theme, icon_name, size, 0);
+ if (icon_info == NULL)
+ return NULL;
+
ret = g_strdup (gtk_icon_info_get_filename (icon_info));
gtk_icon_info_free (icon_info);