# HG changeset patch # User Elliott Sales de Andrade # Date 1262219592 0 # Node ID 0b48f58e8c503e8d2b8ecbf4054e76f6d8d0ac52 # Parent ac6c2dda0eae74483b7898b954f9e6c40af45b06 Don't try to remove a timeout on a NULL conversation, which can happen when the received-im-msg signal is called for a message-that-starts-a-conv. This fixes a small ("fatal") g_log thing. diff -r ac6c2dda0eae -r 0b48f58e8c50 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Wed Dec 23 07:47:14 2009 +0000 +++ b/pidgin/gtkconv.c Thu Dec 31 00:33:12 2009 +0000 @@ -5493,10 +5493,12 @@ } /* Somebody wants to keep this conversation around, so don't time it out */ - timer = GPOINTER_TO_INT(purple_conversation_get_data(conv, "close-timer")); - if (timer) { - purple_timeout_remove(timer); - purple_conversation_set_data(conv, "close-timer", GINT_TO_POINTER(0)); + if (conv) { + timer = GPOINTER_TO_INT(purple_conversation_get_data(conv, "close-timer")); + if (timer) { + purple_timeout_remove(timer); + purple_conversation_set_data(conv, "close-timer", GINT_TO_POINTER(0)); + } } }