Mercurial > pidgin.yaz
changeset 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 | fe5398f498ee |
children | b2b756b59d81 |
files | pidgin/gtkblist.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
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);