Mercurial > pidgin
comparison src/gtkpluginpref.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 | 3de53fe8345f |
| children |
comparison
equal
deleted
inserted
replaced
| 14034:0839a7b71325 | 14035:8bda65b88e49 |
|---|---|
| 55 | 55 |
| 56 pref = g_object_get_data(G_OBJECT(imhtml), "pref-key"); | 56 pref = g_object_get_data(G_OBJECT(imhtml), "pref-key"); |
| 57 g_return_if_fail(pref); | 57 g_return_if_fail(pref); |
| 58 | 58 |
| 59 text = gtk_imhtml_get_markup(imhtml); | 59 text = gtk_imhtml_get_markup(imhtml); |
| 60 | |
| 61 if (!text) | |
| 62 text = ""; | |
| 63 gaim_prefs_set_string(pref, text); | 60 gaim_prefs_set_string(pref, text); |
| 64 g_free(text); | 61 g_free(text); |
| 65 } | 62 } |
| 66 | 63 |
| 67 static void | 64 static void |
