Commit 7d1c1471 authored by Mikhail Zabaluev's avatar Mikhail Zabaluev

su_source.c: don t leak the wait arrays

darcs-hash:20071008143204-5b6ca-2e0f3fba31d8ed11f1653ad56ea5d17df0c3c803.gz
parent 7c040639
...@@ -283,6 +283,17 @@ static void su_source_port_deinit(su_port_t *self) ...@@ -283,6 +283,17 @@ static void su_source_port_deinit(su_port_t *self)
g_static_mutex_free(self->sup_mutex); g_static_mutex_free(self->sup_mutex);
g_static_mutex_free(self->sup_obtained); g_static_mutex_free(self->sup_obtained);
if (self->sup_indices)
free (self->sup_indices), self->sup_indices = NULL;
if (self->sup_waits)
free (self->sup_waits), self->sup_waits = NULL;
if (self->sup_wait_cbs)
free (self->sup_wait_cbs), self->sup_wait_cbs = NULL;
if (self->sup_wait_args)
free (self->sup_wait_args), self->sup_wait_args = NULL;
if (self->sup_wait_roots)
free (self->sup_wait_roots), self->sup_wait_roots = NULL;
su_home_deinit(self->sup_base->sup_home); su_home_deinit(self->sup_base->sup_home);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment