Don't free cached_poll_array, when adding new poll's. This is taken care
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Thu, 30 Aug 2001 13:25:34 +0000 (13:25 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Thu, 30 Aug 2001 13:25:34 +0000 (13:25 +0000)
2001-08-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* 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.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gmain.c

index 708056f..78fe193 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <tml@iki.fi>
 
        After being away for about five months, I'm back working on
index 708056f..78fe193 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <tml@iki.fi>
 
        After being away for about five months, I'm back working on
index 708056f..78fe193 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <tml@iki.fi>
 
        After being away for about five months, I'm back working on
index 708056f..78fe193 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <tml@iki.fi>
 
        After being away for about five months, I'm back working on
index 708056f..78fe193 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <tml@iki.fi>
 
        After being away for about five months, I'm back working on
index 708056f..78fe193 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <tml@iki.fi>
 
        After being away for about five months, I'm back working on
index 708056f..78fe193 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <tml@iki.fi>
 
        After being away for about five months, I'm back working on
index 708056f..78fe193 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * 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  <tml@iki.fi>
 
        After being away for about five months, I'm back working on
index b55bb6b..35be1a4 100644 (file)
@@ -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;