mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-03 15:34:54 -05:00
Only remove source if exists
This commit is contained in:
parent
91780b71db
commit
a8a8ba8cd2
1 changed files with 3 additions and 1 deletions
|
@ -2012,7 +2012,9 @@ static void cleanup ()
|
||||||
tpool = NULL;
|
tpool = NULL;
|
||||||
}
|
}
|
||||||
if ( main_loop != 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 );
|
g_main_loop_unref ( main_loop );
|
||||||
main_loop = NULL;
|
main_loop = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue