aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-12-29 17:11:42 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-12-29 17:11:42 +0800
commitd600e3398221e445915bab48c013468e9a540648 (patch)
tree6a8837fb74f7319f959532a55be5b1a3561a07b0
parent7b2f6bf7975b133a0dcbd87ffe3ba69c12e8db92 (diff)
downloadgsoc2013-empathy-d600e3398221e445915bab48c013468e9a540648.tar
gsoc2013-empathy-d600e3398221e445915bab48c013468e9a540648.tar.gz
gsoc2013-empathy-d600e3398221e445915bab48c013468e9a540648.tar.bz2
gsoc2013-empathy-d600e3398221e445915bab48c013468e9a540648.tar.lz
gsoc2013-empathy-d600e3398221e445915bab48c013468e9a540648.tar.xz
gsoc2013-empathy-d600e3398221e445915bab48c013468e9a540648.tar.zst
gsoc2013-empathy-d600e3398221e445915bab48c013468e9a540648.zip
Don't unref NULL avatar used as chat window icon
This only happens if you set a secret gconf key, I think. Signed-off-by: Will Thompson <will.thompson@collabora.co.uk> git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@2016 4ee84921-47dd-4033-b63a-18d7a039a3e4
-rw-r--r--src/empathy-chat-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 8a6653ae5..e0e9dae5d 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -325,7 +325,10 @@ chat_window_update (EmpathyChatWindow *window)
remote_contact = empathy_chat_get_remote_contact (priv->current_chat);
icon = empathy_pixbuf_avatar_from_contact_scaled (remote_contact, 0, 0);
gtk_window_set_icon (GTK_WINDOW (priv->dialog), icon);
- g_object_unref (icon);
+
+ if (icon != NULL) {
+ g_object_unref (icon);
+ }
} else {
gtk_window_set_icon_name (GTK_WINDOW (priv->dialog), NULL);
}