summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-01-27 23:49:56 +0100
committerDave Davenport <qball@gmpclient.org>2016-01-27 23:49:56 +0100
commita8a8ba8cd2eb8a6070b8d5356e26b1e81add2392 (patch)
treeee087f3dca7f6be005e40cfe1a185115d6bcae9e /source
parent91780b71dbcf509afa3f84a0bde4c503c801b27b (diff)
Only remove source if exists
Diffstat (limited to 'source')
-rw-r--r--source/rofi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/rofi.c b/source/rofi.c
index 9981a6c6..83632a83 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -2012,7 +2012,9 @@ static void cleanup ()
tpool = NULL;
}
if ( main_loop != NULL ) {
- g_source_destroy ( main_loop_source );
+ if( main_loop_source) {
+ g_source_destroy ( main_loop_source );
+ }
g_main_loop_unref ( main_loop );
main_loop = NULL;
}