comparison src/gtkutils.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 743e38a3182b
children 31d33e7bc0e6
comparison
equal deleted inserted replaced
14034:0839a7b71325 14035:8bda65b88e49
1051 } 1051 }
1052 else 1052 else
1053 { 1053 {
1054 valid = FALSE; 1054 valid = FALSE;
1055 1055
1056 if (username != NULL) g_free(username); 1056 g_free(username);
1057 if (protocol != NULL) g_free(protocol); 1057 g_free(protocol);
1058 if (alias != NULL) g_free(alias); 1058 g_free(alias);
1059 } 1059 }
1060 1060
1061 g_free(str); 1061 g_free(str);
1062 1062
1063 return valid; 1063 return valid;