changeset 7685:9e122b8f564f

[gaim-migrate @ 8329] Let's see if this helps some of those memleaks... committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Mon, 01 Dec 2003 23:10:09 +0000
parents 7e0fa656d672
children d89d5b930f0d
files plugins/history.c src/gtklog.c src/log.c
diffstat 3 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/history.c	Mon Dec 01 22:01:47 2003 +0000
+++ b/plugins/history.c	Mon Dec 01 23:10:09 2003 +0000
@@ -44,8 +44,7 @@
 	while (logs) {
 		GaimLog *log = logs->data;
 		GList *logs2;
-		g_free(log->name);
-		g_free(log);
+	    gaim_log_free(log);
 		logs2 = logs->next;
 		g_list_free_1(logs);
 		logs = logs2;
--- a/src/gtklog.c	Mon Dec 01 22:01:47 2003 +0000
+++ b/src/gtklog.c	Mon Dec 01 23:10:09 2003 +0000
@@ -119,8 +119,7 @@
 	while (lv->logs) {
 		GaimLog *log = lv->logs->data;
 		GList *logs2;
-		g_free(log->name);
-		g_free(log);
+		gaim_log_free(log);
 		logs2 = lv->logs->next;
 		g_list_free_1(lv->logs);
 		lv->logs = logs2;
--- a/src/log.c	Mon Dec 01 22:01:47 2003 +0000
+++ b/src/log.c	Mon Dec 01 23:10:09 2003 +0000
@@ -100,8 +100,7 @@
 		GList *logs2 = logs->next;
 		GaimLog *log = (GaimLog*)(logs->data);
 		size += gaim_log_get_size(log);
-		g_free(log->name);
-		g_free(log);
+		gaim_log_free(log);
 		g_list_free_1(logs);
 		logs = logs2;
 	}