summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2009-11-01 20:20:48 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2009-11-01 20:20:48 +0800
commit30e3bc78afe22cf1213c9da6deb01bffc745ea7b (patch)
tree7f1c294f65f9a94a16836eb65fdb330d4707ac4a
parent1050ba2fa9f7afee37de2d2a503f70732df1714c (diff)
milkway: fixed all valgrind warnings
-rw-r--r--milkway/mw-main-context.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/milkway/mw-main-context.c b/milkway/mw-main-context.c
index 5de854a..8e0be8c 100644
--- a/milkway/mw-main-context.c
+++ b/milkway/mw-main-context.c
@@ -268,7 +268,11 @@ mw_main_context_init (mw_main_context_t *context)
mw_static_mutex_init (&context->mutex);
context->owner = NULL;
+ context->owner_count = 0;
context->waiters = NULL;
+ context->cond = NULL;
+
+ context->in_check_or_prepare = MW_FALSE;
# ifndef MW_OS_WINDOWS
context->wake_up_pipe[0] = -1;
@@ -284,6 +288,11 @@ mw_main_context_init (mw_main_context_t *context)
context->cached_poll_array = NULL;
context->cached_poll_array_size = 0;
+ context->poll_records = NULL;
+ context->n_poll_records = 0;
+
+ context->poll_waiting = MW_FALSE;
+
context->pending_dispatches = mw_ptr_array_new ();
context->time_is_current = MW_FALSE;