Mercurial > pidgin.yaz
diff pidgin/gtkblist.c @ 15708:c50358666110
Fix asserts when there is no buddy icon
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 25 Feb 2007 21:40:40 +0000 |
parents | a830f9756f23 |
children | 20225df32b7e |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Sun Feb 25 19:19:12 2007 +0000 +++ b/pidgin/gtkblist.c Sun Feb 25 21:40:40 2007 +0000 @@ -2301,8 +2301,11 @@ td->avatar_is_prpl_icon = TRUE; } #endif - td->avatar_width = gdk_pixbuf_get_width(td->avatar); - td->avatar_height = gdk_pixbuf_get_height(td->avatar); + + if (td->avatar) { + td->avatar_width = gdk_pixbuf_get_width(td->avatar); + td->avatar_height = gdk_pixbuf_get_height(td->avatar); + } g_free(node_name); g_free(tooltip_text);