comparison plugins/history.c @ 14035:8bda65b88e49

[gaim-migrate @ 16638] A bunch of small changes. Mostly remove "if not null" checks before calling g_free, g_list_free, g_slist_free and g_strdup. Also use g_list_foreach() to call g_free to free strings in an array. And some whitespace changes here and there. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 05 Aug 2006 08:27:39 +0000
parents d4af79bc2d0a
children
comparison
equal deleted inserted replaced
14034:0839a7b71325 14035:8bda65b88e49
88 g_slist_free(buddies); 88 g_slist_free(buddies);
89 89
90 if (logs == NULL) 90 if (logs == NULL)
91 logs = gaim_log_get_logs(GAIM_LOG_IM, name, account); 91 logs = gaim_log_get_logs(GAIM_LOG_IM, name, account);
92 else 92 else
93 logs = g_list_sort(logs, gaim_log_compare); 93 logs = g_list_sort(logs, gaim_log_compare);
94 } 94 }
95 else if (convtype == GAIM_CONV_TYPE_CHAT) 95 else if (convtype == GAIM_CONV_TYPE_CHAT)
96 { 96 {
97 /* If we're not logging, don't show anything. 97 /* If we're not logging, don't show anything.
98 * Otherwise, we might show a very old log. */ 98 * Otherwise, we might show a very old log. */