[gnumeric] 2009-06-09 Jody Goldberg <jody gnome org>



commit f9ebbfd7167fc334952b9d0bcd50a62ddce24ebf
Author: Jody Goldberg <jody gnome org>
Date:   Tue Jun 9 20:45:44 2009 -0400

    2009-06-09  Jody Goldberg <jody gnome org>
    
    	* src/go-string.c (go_string_shutdown) : don't leak the shared string
    	  table.
---
 ChangeLog       |    5 +++++
 src/go-string.c |    5 ++++-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 98396be..24b0e9d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-09  Jody Goldberg <jody gnome org>
+
+	* src/go-string.c (go_string_shutdown) : don't leak the shared string
+	  table.
+
 2009-06-09  Morten Welinder  <terra gnome org>
 
 	* src/go-string.c: Avoid lots of casts.  Use unsigned values for
diff --git a/src/go-string.c b/src/go-string.c
index 008bf29..d9360b5 100644
--- a/src/go-string.c
+++ b/src/go-string.c
@@ -459,12 +459,15 @@ void
 go_string_shutdown (void)
 {
 	go_string_unref (go_string_ERROR_val);
+
+	g_hash_table_destroy (go_strings_shared);
+	go_strings_shared = NULL;
+
 	g_hash_table_foreach_remove (go_strings_base,
 				     cb_string_pool_leak,
 				     NULL);
 	g_hash_table_destroy (go_strings_base);
 	go_strings_base = NULL;
-	go_strings_shared = NULL;
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]