diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-01-27 23:49:56 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-01-27 23:49:56 +0100 |
commit | a8a8ba8cd2eb8a6070b8d5356e26b1e81add2392 (patch) | |
tree | ee087f3dca7f6be005e40cfe1a185115d6bcae9e /source | |
parent | 91780b71dbcf509afa3f84a0bde4c503c801b27b (diff) |
Only remove source if exists
Diffstat (limited to 'source')
-rw-r--r-- | source/rofi.c | 4 |
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; } |