From 042179dad8ae6eef4053a5c0a2a4843e2d1b9830 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Sun, 6 Aug 2000 18:09:32 +0000 Subject: [PATCH] keep *last updated while running through the domain list, so we don't Sun Aug 6 20:06:02 2000 Tim Janik * gmessages.c (g_log_domain_check_free): keep *last updated while running through the domain list, so we don't screw up the removal, patch provided by Gady Kozma . Sun Aug 6 20:03:41 2000 Tim Janik * gmessages.c (g_log_remove_handler): keep *last updated while running through the handler list, so we don't screw up the removal. --- ChangeLog | 11 +++++++++++ ChangeLog.pre-2-0 | 11 +++++++++++ ChangeLog.pre-2-10 | 11 +++++++++++ ChangeLog.pre-2-12 | 11 +++++++++++ ChangeLog.pre-2-2 | 11 +++++++++++ ChangeLog.pre-2-4 | 11 +++++++++++ ChangeLog.pre-2-6 | 11 +++++++++++ ChangeLog.pre-2-8 | 11 +++++++++++ glib/gmessages.c | 6 ++++-- gmessages.c | 6 ++++-- 10 files changed, 96 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7baf383..01bdb6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +Sun Aug 6 20:06:02 2000 Tim Janik + + * gmessages.c (g_log_domain_check_free): keep *last updated while + running through the domain list, so we don't screw up the removal, + patch provided by Gady Kozma . + +Sun Aug 6 20:03:41 2000 Tim Janik + + * gmessages.c (g_log_remove_handler): keep *last updated while running + through the handler list, so we don't screw up the removal. + Sun Jul 30 16:54:13 2000 Owen Taylor * gunicode.h: Fix stray character diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 7baf383..01bdb6a 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,14 @@ +Sun Aug 6 20:06:02 2000 Tim Janik + + * gmessages.c (g_log_domain_check_free): keep *last updated while + running through the domain list, so we don't screw up the removal, + patch provided by Gady Kozma . + +Sun Aug 6 20:03:41 2000 Tim Janik + + * gmessages.c (g_log_remove_handler): keep *last updated while running + through the handler list, so we don't screw up the removal. + Sun Jul 30 16:54:13 2000 Owen Taylor * gunicode.h: Fix stray character diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 7baf383..01bdb6a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,14 @@ +Sun Aug 6 20:06:02 2000 Tim Janik + + * gmessages.c (g_log_domain_check_free): keep *last updated while + running through the domain list, so we don't screw up the removal, + patch provided by Gady Kozma . + +Sun Aug 6 20:03:41 2000 Tim Janik + + * gmessages.c (g_log_remove_handler): keep *last updated while running + through the handler list, so we don't screw up the removal. + Sun Jul 30 16:54:13 2000 Owen Taylor * gunicode.h: Fix stray character diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 7baf383..01bdb6a 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,14 @@ +Sun Aug 6 20:06:02 2000 Tim Janik + + * gmessages.c (g_log_domain_check_free): keep *last updated while + running through the domain list, so we don't screw up the removal, + patch provided by Gady Kozma . + +Sun Aug 6 20:03:41 2000 Tim Janik + + * gmessages.c (g_log_remove_handler): keep *last updated while running + through the handler list, so we don't screw up the removal. + Sun Jul 30 16:54:13 2000 Owen Taylor * gunicode.h: Fix stray character diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 7baf383..01bdb6a 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,14 @@ +Sun Aug 6 20:06:02 2000 Tim Janik + + * gmessages.c (g_log_domain_check_free): keep *last updated while + running through the domain list, so we don't screw up the removal, + patch provided by Gady Kozma . + +Sun Aug 6 20:03:41 2000 Tim Janik + + * gmessages.c (g_log_remove_handler): keep *last updated while running + through the handler list, so we don't screw up the removal. + Sun Jul 30 16:54:13 2000 Owen Taylor * gunicode.h: Fix stray character diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 7baf383..01bdb6a 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,14 @@ +Sun Aug 6 20:06:02 2000 Tim Janik + + * gmessages.c (g_log_domain_check_free): keep *last updated while + running through the domain list, so we don't screw up the removal, + patch provided by Gady Kozma . + +Sun Aug 6 20:03:41 2000 Tim Janik + + * gmessages.c (g_log_remove_handler): keep *last updated while running + through the handler list, so we don't screw up the removal. + Sun Jul 30 16:54:13 2000 Owen Taylor * gunicode.h: Fix stray character diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 7baf383..01bdb6a 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,14 @@ +Sun Aug 6 20:06:02 2000 Tim Janik + + * gmessages.c (g_log_domain_check_free): keep *last updated while + running through the domain list, so we don't screw up the removal, + patch provided by Gady Kozma . + +Sun Aug 6 20:03:41 2000 Tim Janik + + * gmessages.c (g_log_remove_handler): keep *last updated while running + through the handler list, so we don't screw up the removal. + Sun Jul 30 16:54:13 2000 Owen Taylor * gunicode.h: Fix stray character diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 7baf383..01bdb6a 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,14 @@ +Sun Aug 6 20:06:02 2000 Tim Janik + + * gmessages.c (g_log_domain_check_free): keep *last updated while + running through the domain list, so we don't screw up the removal, + patch provided by Gady Kozma . + +Sun Aug 6 20:03:41 2000 Tim Janik + + * gmessages.c (g_log_remove_handler): keep *last updated while running + through the handler list, so we don't screw up the removal. + Sun Jul 30 16:54:13 2000 Owen Taylor * gunicode.h: Fix stray character diff --git a/glib/gmessages.c b/glib/gmessages.c index 390885f..32b63e1 100644 --- a/glib/gmessages.c +++ b/glib/gmessages.c @@ -190,7 +190,8 @@ g_log_domain_check_free (GLogDomain *domain) g_free (domain); break; } - work = work->next; + last = work; + work = last->next; } g_mutex_unlock (g_messages_lock); } @@ -328,7 +329,8 @@ g_log_remove_handler (const gchar *log_domain, g_log_domain_check_free (domain); return; } - work = work->next; + last = work; + work = last->next; } } g_warning ("g_log_remove_handler(): could not find handler with id `%d' for domain \"%s\"", diff --git a/gmessages.c b/gmessages.c index 390885f..32b63e1 100644 --- a/gmessages.c +++ b/gmessages.c @@ -190,7 +190,8 @@ g_log_domain_check_free (GLogDomain *domain) g_free (domain); break; } - work = work->next; + last = work; + work = last->next; } g_mutex_unlock (g_messages_lock); } @@ -328,7 +329,8 @@ g_log_remove_handler (const gchar *log_domain, g_log_domain_check_free (domain); return; } - work = work->next; + last = work; + work = last->next; } } g_warning ("g_log_remove_handler(): could not find handler with id `%d' for domain \"%s\"", -- 2.7.4