[file-roller] do not call release_data if the data was not initialized
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] do not call release_data if the data was not initialized
- Date: Thu, 31 May 2012 18:44:43 +0000 (UTC)
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]