summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-21 13:57:30 +0100
committerinfirit <[email protected]>2014-11-21 13:57:30 +0100
commitc4483adfafac902912111a0b2318464c1f62cdde (patch)
tree178d1f6a31f9cef149e1e68913af6af94b392f1b /src/main.c
parentb8c7de3fbbefe00fac750bf67dfb61797ba41938 (diff)
downloadengrampa-c4483adfafac902912111a0b2318464c1f62cdde.tar.bz2
engrampa-c4483adfafac902912111a0b2318464c1f62cdde.tar.xz
do not call release_data if the data was not initialized
Based on FR commit: 05c0b2c366f5524645167d9dca2268219563559d From: Paolo Bacchilega <[email protected]>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 520f3df..4b0a51d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -385,7 +385,8 @@ command_done (CommandData *cdata)
static void
release_data ()
{
- g_hash_table_destroy (ProgramsCache);
+ if (! initialized)
+ return;
while (CommandList != NULL) {
CommandData *cdata = CommandList->data;