changeset 13567:724119af64f3

[gaim-migrate @ 15946] Part of SF Patch #1453583 from Sadrul This simplifies some code a bit by using g_list_delete_link() instead of doing the work directly. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 26 Mar 2006 07:33:03 +0000
parents 8ec038ec9998
children 6034444bbcf5
files src/log.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/log.c	Sat Mar 25 23:34:53 2006 +0000
+++ b/src/log.c	Sun Mar 26 07:33:03 2006 +0000
@@ -219,12 +219,10 @@
 				int this_size = 0;
 
 				while (logs) {
-					GList *logs2 = logs->next;
 					GaimLog *log = (GaimLog*)(logs->data);
 					this_size += gaim_log_get_size(log);
 					gaim_log_free(log);
-					g_list_free_1(logs);
-					logs = logs2;
+					logs = g_list_delete_link(logs, logs);
 				}
 
 				size += this_size;