Mercurial > pidgin.yaz
diff pidgin/gtksound.c @ 19414:3d42c005fc17
Make sure a conversation is a pidgin-conversation to avoid a crash.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 25 Aug 2007 04:50:57 +0000 |
parents | 630938110521 |
children | 0914ce0f3e0e |
line wrap: on
line diff
--- a/pidgin/gtksound.c Sat Aug 25 03:59:05 2007 +0000 +++ b/pidgin/gtksound.c Sat Aug 25 04:50:57 2007 +0000 @@ -114,7 +114,7 @@ play_conv_event(PurpleConversation *conv, PurpleSoundEventID event) { /* If we should not play the sound for some reason, then exit early */ - if (conv != NULL) + if (conv != NULL && PIDGIN_IS_PIDGIN_CONVERSATION(conv)) { PidginConversation *gtkconv; PidginWindow *win;