2
0
Fork 0

fix small leaks

personal/stbuehler/wip
Thomas Porzelt 2009-01-07 21:11:06 +01:00
parent 93bd5e2a6a
commit 52bcd62d74
1 changed files with 3 additions and 0 deletions

View File

@ -367,6 +367,7 @@ void worker_free(worker *wrk) {
guint i;
for (i = 0; i < wrk->timestamps->len; i++)
g_string_free(g_array_index(wrk->timestamps, worker_ts, i).str, TRUE);
g_array_free(wrk->timestamps, TRUE);
}
g_async_queue_unref(wrk->new_con_queue);
@ -379,6 +380,8 @@ void worker_free(worker *wrk) {
collect_watcher_cb(wrk->loop, &wrk->collect_watcher, 0);
g_async_queue_unref(wrk->collect_queue);
g_string_free(wrk->tmp_str, TRUE);
g_slice_free(worker, wrk);
}