Mercurial > pidgin.yaz
comparison src/whiteboard.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 | ad33debf87b4 |
children |
comparison
equal
deleted
inserted
replaced
14034:0839a7b71325 | 14035:8bda65b88e49 |
---|---|
122 return NULL; | 122 return NULL; |
123 } | 123 } |
124 | 124 |
125 void gaim_whiteboard_draw_list_destroy(GList *draw_list) | 125 void gaim_whiteboard_draw_list_destroy(GList *draw_list) |
126 { | 126 { |
127 if (draw_list) | 127 g_list_free(draw_list); |
128 g_list_free(draw_list); | |
129 } | 128 } |
130 | 129 |
131 gboolean gaim_whiteboard_get_dimensions(GaimWhiteboard *wb, int *width, int *height) | 130 gboolean gaim_whiteboard_get_dimensions(GaimWhiteboard *wb, int *width, int *height) |
132 { | 131 { |
133 GaimWhiteboardPrplOps *prpl_ops = wb->prpl_ops; | 132 GaimWhiteboardPrplOps *prpl_ops = wb->prpl_ops; |