[file-roller] do not call release_data if the data was not initialized



commit 05c0b2c366f5524645167d9dca2268219563559d
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu May 31 20:25:17 2012 +0200

    do not call release_data if the data was not initialized

 src/fr-init.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-init.c b/src/fr-init.c
index 7e02582..79d29fe 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -610,7 +610,6 @@ initialize_data (void)
 	migrate_options_directory ();
 	register_commands ();
 	compute_supported_archive_types ();
-
 	fr_stock_init ();
 }
 
@@ -651,7 +650,8 @@ command_done (CommandData *cdata)
 void
 release_data (void)
 {
-	g_hash_table_destroy (ProgramsCache);
+	if (! initialized)
+		return;
 
 	while (CommandList != NULL) {
 		CommandData *cdata = CommandList->data;



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