[gmime] Fixed to allow re-initialization
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Fixed to allow re-initialization
- Date: Fri, 26 Mar 2010 13:43:07 +0000 (UTC)
commit 3922cef5585600d1d62302839ce5f32ff715d327
Author: Jeffrey Stedfast <fejj gnome org>
Date: Fri Mar 26 09:42:22 2010 -0400
Fixed to allow re-initialization
(g_mime_object_type_registry_shutdown): Set type_hash to NULL
after destroying it so that a re-init will work.
ChangeLog | 3 ++-
gmime/gmime-object.c | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 47c8865..6c9f393 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,7 +9,8 @@
* gmime/gmime-object.c (g_mime_object_type_registry_init): Renamed
a bit and fixed to not use g_atexit(). Also made internal-public.
(g_mime_object_type_registry_shutdown): Renamed and made
- internal-public.
+ internal-public. Also set type_hash to NULL after destroying it so
+ that a re-init will work.
(g_mime_object_register_type): Don't init the type system anymore.
(g_mime_object_new): Same.
(g_mime_object_new_type): Same here.
diff --git a/gmime/gmime-object.c b/gmime/gmime-object.c
index de94ed1..9c0fdbe 100644
--- a/gmime/gmime-object.c
+++ b/gmime/gmime-object.c
@@ -1074,6 +1074,7 @@ g_mime_object_type_registry_shutdown (void)
{
g_hash_table_foreach (type_hash, type_bucket_foreach, NULL);
g_hash_table_destroy (type_hash);
+ type_hash = NULL;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]