grim/guifications2

some random cleanups

2011-12-04, Gary Kramlich
a528ba665d86
Parents ad463181534e
Children 03979db9d81b
some random cleanups
--- a/src/gf_event.c Sun Dec 04 18:24:01 2011 -0600
+++ b/src/gf_event.c Sun Dec 04 19:59:03 2011 -0600
@@ -671,7 +671,7 @@
void
gf_events_init(PurplePlugin *plugin) {
GList *l, *ll = NULL;
- void *blist_handle, *conv_handle, *xfers_handle;
+ void *blist_handle = NULL, *conv_handle = NULL, *xfers_handle = NULL;
g_return_if_fail(plugin);
@@ -839,14 +839,14 @@
void
gf_events_uninit() {
- GList *l, *ll;
+ GList *l = NULL;
gf_event_email_uninit();
-
- for(l = events; l; l = ll) {
- ll = l->next;
+
+ for(l = events; l; l = l->next)
gf_event_destroy(GF_EVENT(l->data));
- }
+
g_list_free(events);
+
events = NULL;
}