Mercurial > pidgin
comparison src/gtkprivacy.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 | 3ac2d64a74a0 |
children |
comparison
equal
deleted
inserted
replaced
14034:0839a7b71325 | 14035:8bda65b88e49 |
---|---|
5 * gaim | 5 * gaim |
6 * | 6 * |
7 * Gaim is the legal property of its developers, whose names are too numerous | 7 * Gaim is the legal property of its developers, whose names are too numerous |
8 * to list here. Please refer to the COPYRIGHT file distributed with this | 8 * to list here. Please refer to the COPYRIGHT file distributed with this |
9 * source distribution. | 9 * source distribution. |
10 * | 10 * |
11 * This program is free software; you can redistribute it and/or modify | 11 * This program is free software; you can redistribute it and/or modify |
12 * it under the terms of the GNU General Public License as published by | 12 * it under the terms of the GNU General Public License as published by |
13 * the Free Software Foundation; either version 2 of the License, or | 13 * the Free Software Foundation; either version 2 of the License, or |
14 * (at your option) any later version. | 14 * (at your option) any later version. |
15 * | 15 * |
519 } | 519 } |
520 | 520 |
521 static void | 521 static void |
522 destroy_request_data(GaimGtkPrivacyRequestData *data) | 522 destroy_request_data(GaimGtkPrivacyRequestData *data) |
523 { | 523 { |
524 if (data->name != NULL) | 524 g_free(data->name); |
525 g_free(data->name); | |
526 | |
527 g_free(data); | 525 g_free(data); |
528 } | 526 } |
529 | 527 |
530 static void | 528 static void |
531 confirm_permit_block_cb(GaimGtkPrivacyRequestData *data, int option) | 529 confirm_permit_block_cb(GaimGtkPrivacyRequestData *data, int option) |