mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 14:49:16 +02:00
check if context->poll_chunk is set before trying to destroy it. For
Wed Jul 9 16:27:26 2003 Manish Singh <yosh@gimp.org> * glib/gmain.c (g_main_context_unref_and_unlock): check if context->poll_chunk is set before trying to destroy it. For example, This can happen if no sources are added to a context before it is freed.
This commit is contained in:
parent
f1c0e401ab
commit
ca1ff92c51
@ -1,3 +1,10 @@
|
|||||||
|
Wed Jul 9 16:27:26 2003 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_unref_and_unlock): check if
|
||||||
|
context->poll_chunk is set before trying to destroy it. For example,
|
||||||
|
This can happen if no sources are added to a context before it is
|
||||||
|
freed.
|
||||||
|
|
||||||
2003-07-09 Morten Welinder <terra@gnome.org>
|
2003-07-09 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Jul 9 16:27:26 2003 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_unref_and_unlock): check if
|
||||||
|
context->poll_chunk is set before trying to destroy it. For example,
|
||||||
|
This can happen if no sources are added to a context before it is
|
||||||
|
freed.
|
||||||
|
|
||||||
2003-07-09 Morten Welinder <terra@gnome.org>
|
2003-07-09 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Jul 9 16:27:26 2003 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_unref_and_unlock): check if
|
||||||
|
context->poll_chunk is set before trying to destroy it. For example,
|
||||||
|
This can happen if no sources are added to a context before it is
|
||||||
|
freed.
|
||||||
|
|
||||||
2003-07-09 Morten Welinder <terra@gnome.org>
|
2003-07-09 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Jul 9 16:27:26 2003 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_unref_and_unlock): check if
|
||||||
|
context->poll_chunk is set before trying to destroy it. For example,
|
||||||
|
This can happen if no sources are added to a context before it is
|
||||||
|
freed.
|
||||||
|
|
||||||
2003-07-09 Morten Welinder <terra@gnome.org>
|
2003-07-09 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Jul 9 16:27:26 2003 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_unref_and_unlock): check if
|
||||||
|
context->poll_chunk is set before trying to destroy it. For example,
|
||||||
|
This can happen if no sources are added to a context before it is
|
||||||
|
freed.
|
||||||
|
|
||||||
2003-07-09 Morten Welinder <terra@gnome.org>
|
2003-07-09 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Jul 9 16:27:26 2003 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_context_unref_and_unlock): check if
|
||||||
|
context->poll_chunk is set before trying to destroy it. For example,
|
||||||
|
This can happen if no sources are added to a context before it is
|
||||||
|
freed.
|
||||||
|
|
||||||
2003-07-09 Morten Welinder <terra@gnome.org>
|
2003-07-09 Morten Welinder <terra@gnome.org>
|
||||||
|
|
||||||
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
* glib/gprintf.c (g_vasprintf): Avoid var declaration after
|
||||||
|
@ -577,6 +577,7 @@ g_main_context_unref_and_unlock (GMainContext *context)
|
|||||||
g_ptr_array_free (context->pending_dispatches, TRUE);
|
g_ptr_array_free (context->pending_dispatches, TRUE);
|
||||||
g_free (context->cached_poll_array);
|
g_free (context->cached_poll_array);
|
||||||
|
|
||||||
|
if (context->poll_chunk)
|
||||||
g_mem_chunk_destroy (context->poll_chunk);
|
g_mem_chunk_destroy (context->poll_chunk);
|
||||||
|
|
||||||
#ifdef G_THREADS_ENABLED
|
#ifdef G_THREADS_ENABLED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user