mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-12 13:49:22 +01:00
Handle NULL entries (already dispatched) in pending_dispatches array
Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com> * glib/gmain.c (g_main_context_prepare): Handle NULL entries (already dispatched) in pending_dispatches array (pointed out by Manish Singh)
This commit is contained in:
parent
c55b9a4f44
commit
a3d982007e
@ -1,3 +1,9 @@
|
|||||||
|
Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Handle
|
||||||
|
NULL entries (already dispatched) in pending_dispatches array
|
||||||
|
(pointed out by Manish Singh)
|
||||||
|
|
||||||
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c (g_main_context_prepare): Unref pending
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Handle
|
||||||
|
NULL entries (already dispatched) in pending_dispatches array
|
||||||
|
(pointed out by Manish Singh)
|
||||||
|
|
||||||
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c (g_main_context_prepare): Unref pending
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Handle
|
||||||
|
NULL entries (already dispatched) in pending_dispatches array
|
||||||
|
(pointed out by Manish Singh)
|
||||||
|
|
||||||
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c (g_main_context_prepare): Unref pending
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Handle
|
||||||
|
NULL entries (already dispatched) in pending_dispatches array
|
||||||
|
(pointed out by Manish Singh)
|
||||||
|
|
||||||
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c (g_main_context_prepare): Unref pending
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Handle
|
||||||
|
NULL entries (already dispatched) in pending_dispatches array
|
||||||
|
(pointed out by Manish Singh)
|
||||||
|
|
||||||
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c (g_main_context_prepare): Unref pending
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Handle
|
||||||
|
NULL entries (already dispatched) in pending_dispatches array
|
||||||
|
(pointed out by Manish Singh)
|
||||||
|
|
||||||
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c (g_main_context_prepare): Unref pending
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Handle
|
||||||
|
NULL entries (already dispatched) in pending_dispatches array
|
||||||
|
(pointed out by Manish Singh)
|
||||||
|
|
||||||
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c (g_main_context_prepare): Unref pending
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Feb 6 14:44:18 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Handle
|
||||||
|
NULL entries (already dispatched) in pending_dispatches array
|
||||||
|
(pointed out by Manish Singh)
|
||||||
|
|
||||||
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c (g_main_context_prepare): Unref pending
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
@ -1892,7 +1892,10 @@ g_main_context_prepare (GMainContext *context,
|
|||||||
/* If recursing, clear list of pending dispatches */
|
/* If recursing, clear list of pending dispatches */
|
||||||
|
|
||||||
for (i = 0; i < context->pending_dispatches->len; i++)
|
for (i = 0; i < context->pending_dispatches->len; i++)
|
||||||
SOURCE_UNREF ((GSource *)context->pending_dispatches->pdata[i], context);
|
{
|
||||||
|
if (context->pending_dispatches->pdata[i])
|
||||||
|
SOURCE_UNREF ((GSource *)context->pending_dispatches->pdata[i], context);
|
||||||
|
}
|
||||||
g_ptr_array_set_size (context->pending_dispatches, 0);
|
g_ptr_array_set_size (context->pending_dispatches, 0);
|
||||||
|
|
||||||
/* Prepare all sources */
|
/* Prepare all sources */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user