diff src/server.c @ 3523:82180bb28f1f

[gaim-migrate @ 3596] some memleak fixes. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 16 Sep 2002 19:50:52 +0000
parents f3981f94494a
children 6f9610016503
line wrap: on
line diff
--- a/src/server.c	Mon Sep 16 18:14:39 2002 +0000
+++ b/src/server.c	Mon Sep 16 19:50:52 2002 +0000
@@ -691,7 +691,7 @@
 		
 		if (new_conv && (sound_options & OPT_SOUND_FIRST_RCV))
 			play_sound(SND_FIRST_RECEIVE);
-		else if (cnv->makesound)
+		else if (cnv && cnv->makesound)
 			play_sound(SND_RECEIVE);
 		
 		if (away_options & OPT_AWAY_QUEUE_UNREAD && !find_conversation(name)) {