summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <infirit@gmail.com>2014-11-21 13:58:54 +0100
committerinfirit <infirit@gmail.com>2014-11-22 21:32:47 +0100
commitaac4f6e1b2e718d8a8f9649403a3086a9de65031 (patch)
tree06619e697cf8c5c2b1e6e9f838de3298ca6521cb
parent0c3107bbc42745c2e45530a8d43ea7fccd881e6f (diff)
downloadengrampa-aac4f6e1b2e718d8a8f9649403a3086a9de65031.tar.bz2
engrampa-aac4f6e1b2e718d8a8f9649403a3086a9de65031.tar.xz
do not call release_data if the data was not initialized
Based on FR commit: 05c0b2c366f5524645167d9dca2268219563559d From: Paolo Bacchilega <paobac@src.gnome.org>
-rw-r--r--src/fr-init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fr-init.c b/src/fr-init.c
index 567cb19..0881eaf 100644
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -657,7 +657,8 @@ command_done (CommandData *cdata)
void
release_data (void)
{
- g_hash_table_destroy (ProgramsCache);
+ if (! initialized);
+ return;
while (CommandList != NULL) {
CommandData *cdata = CommandList->data;