From: Sebastian Wilhelmi Date: Thu, 30 Aug 2001 13:25:34 +0000 (+0000) Subject: Don't free cached_poll_array, when adding new poll's. This is taken care X-Git-Tag: GLIB_1_3_7~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf11b57917f8ece400386925975c6418541d1b20;p=platform%2Fupstream%2Fglib.git Don't free cached_poll_array, when adding new poll's. This is taken care 2001-08-30 Sebastian Wilhelmi * glib/gmain.c (g_main_context_add_poll_unlocked): Don't free cached_poll_array, when adding new poll's. This is taken care for in g_main_context_iterate. --- diff --git a/ChangeLog b/ChangeLog index 708056f..78fe193 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-08-30 Sebastian Wilhelmi + + * glib/gmain.c (g_main_context_add_poll_unlocked): Don't free + cached_poll_array, when adding new poll's. This is taken care for + in g_main_context_iterate. + 2001-08-30 Tor Lillqvist After being away for about five months, I'm back working on diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 708056f..78fe193 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +2001-08-30 Sebastian Wilhelmi + + * glib/gmain.c (g_main_context_add_poll_unlocked): Don't free + cached_poll_array, when adding new poll's. This is taken care for + in g_main_context_iterate. + 2001-08-30 Tor Lillqvist After being away for about five months, I'm back working on diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 708056f..78fe193 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2001-08-30 Sebastian Wilhelmi + + * glib/gmain.c (g_main_context_add_poll_unlocked): Don't free + cached_poll_array, when adding new poll's. This is taken care for + in g_main_context_iterate. + 2001-08-30 Tor Lillqvist After being away for about five months, I'm back working on diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 708056f..78fe193 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2001-08-30 Sebastian Wilhelmi + + * glib/gmain.c (g_main_context_add_poll_unlocked): Don't free + cached_poll_array, when adding new poll's. This is taken care for + in g_main_context_iterate. + 2001-08-30 Tor Lillqvist After being away for about five months, I'm back working on diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 708056f..78fe193 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2001-08-30 Sebastian Wilhelmi + + * glib/gmain.c (g_main_context_add_poll_unlocked): Don't free + cached_poll_array, when adding new poll's. This is taken care for + in g_main_context_iterate. + 2001-08-30 Tor Lillqvist After being away for about five months, I'm back working on diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 708056f..78fe193 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2001-08-30 Sebastian Wilhelmi + + * glib/gmain.c (g_main_context_add_poll_unlocked): Don't free + cached_poll_array, when adding new poll's. This is taken care for + in g_main_context_iterate. + 2001-08-30 Tor Lillqvist After being away for about five months, I'm back working on diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 708056f..78fe193 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2001-08-30 Sebastian Wilhelmi + + * glib/gmain.c (g_main_context_add_poll_unlocked): Don't free + cached_poll_array, when adding new poll's. This is taken care for + in g_main_context_iterate. + 2001-08-30 Tor Lillqvist After being away for about five months, I'm back working on diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 708056f..78fe193 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2001-08-30 Sebastian Wilhelmi + + * glib/gmain.c (g_main_context_add_poll_unlocked): Don't free + cached_poll_array, when adding new poll's. This is taken care for + in g_main_context_iterate. + 2001-08-30 Tor Lillqvist After being away for about five months, I'm back working on diff --git a/glib/gmain.c b/glib/gmain.c index b55bb6b..35be1a4 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -2634,12 +2634,6 @@ g_main_context_add_poll_unlocked (GMainContext *context, newrec->next = pollrec; context->n_poll_records++; - if (context->cached_poll_array && - context->cached_poll_array_size < context->n_poll_records) - { - g_free (context->cached_poll_array); - context->cached_poll_array = NULL; - } #ifdef G_THREADS_ENABLED context->poll_changed = TRUE;