comparison src/imgstore.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 4ff4c34b7500
children
comparison
equal deleted inserted replaced
14034:0839a7b71325 14035:8bda65b88e49
80 80
81 g_return_if_fail(priv != NULL); 81 g_return_if_fail(priv != NULL);
82 82
83 img = priv->img; 83 img = priv->img;
84 if (img) { 84 if (img) {
85 if (img->data) 85 g_free(img->data);
86 g_free(img->data); 86 g_free(img->filename);
87 if (img->filename)
88 g_free(img->filename);
89 g_free(img); 87 g_free(img);
90 } 88 }
91 89
92 gaim_debug(GAIM_DEBUG_INFO, "imgstore", "freed image id %d\n", priv->id); 90 gaim_debug(GAIM_DEBUG_INFO, "imgstore", "freed image id %d\n", priv->id);
93 91