changeset 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 62bef830ce61
children 6f9610016503
files src/dialogs.c src/protocols/yahoo/yahoo.c src/server.c
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Mon Sep 16 18:14:39 2002 +0000
+++ b/src/dialogs.c	Mon Sep 16 19:50:52 2002 +0000
@@ -593,6 +593,7 @@
 	}
 	if (filename) {
 		img = gtk_image_new_from_file(filename);
+		g_free(filename);
 		gtk_misc_set_alignment(GTK_MISC(img), 0, 0);
 	}
 	d = gtk_dialog_new_with_buttons("", NULL, GTK_DIALOG_MODAL, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT);
--- a/src/protocols/yahoo/yahoo.c	Mon Sep 16 18:14:39 2002 +0000
+++ b/src/protocols/yahoo/yahoo.c	Mon Sep 16 19:50:52 2002 +0000
@@ -826,6 +826,8 @@
 		
 		yahoo_send_packet(yd, pack);
 		
+		g_free(result6);
+		g_free(result96);
 		g_free(password_hash);
 		g_free(crypt_hash);
 		g_free(hash_string_p);
--- 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)) {