mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-12 13:49:22 +01:00
Unref pending dispatches when discarding them.
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com> * glib/gmain.c (g_main_context_prepare): Unref pending dispatches when discarding them.
This commit is contained in:
parent
b77dfd2f54
commit
c55b9a4f44
@ -1,3 +1,8 @@
|
|||||||
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
dispatches when discarding them.
|
||||||
|
|
||||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
dispatches when discarding them.
|
||||||
|
|
||||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
dispatches when discarding them.
|
||||||
|
|
||||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
dispatches when discarding them.
|
||||||
|
|
||||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
dispatches when discarding them.
|
||||||
|
|
||||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
dispatches when discarding them.
|
||||||
|
|
||||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
dispatches when discarding them.
|
||||||
|
|
||||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Tue Feb 5 17:13:02 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_prepare): Unref pending
|
||||||
|
dispatches when discarding them.
|
||||||
|
|
||||||
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-02-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
* glib/gthread.c (g_thread_create_full): Delay allocation until
|
||||||
|
@ -1846,6 +1846,7 @@ gboolean
|
|||||||
g_main_context_prepare (GMainContext *context,
|
g_main_context_prepare (GMainContext *context,
|
||||||
gint *priority)
|
gint *priority)
|
||||||
{
|
{
|
||||||
|
gint i;
|
||||||
gint n_ready = 0;
|
gint n_ready = 0;
|
||||||
gint current_priority = G_MAXINT;
|
gint current_priority = G_MAXINT;
|
||||||
GSource *source;
|
GSource *source;
|
||||||
@ -1889,6 +1890,9 @@ g_main_context_prepare (GMainContext *context,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If recursing, clear list of pending dispatches */
|
/* If recursing, clear list of pending dispatches */
|
||||||
|
|
||||||
|
for (i = 0; i < context->pending_dispatches->len; 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