mirror of https://github.com/davatorium/rofi.git
Only remove source if exists
This commit is contained in:
parent
91780b71db
commit
a8a8ba8cd2
|
@ -2012,7 +2012,9 @@ static void cleanup ()
|
||||||
tpool = NULL;
|
tpool = NULL;
|
||||||
}
|
}
|
||||||
if ( main_loop != NULL ) {
|
if ( main_loop != NULL ) {
|
||||||
|
if( main_loop_source) {
|
||||||
g_source_destroy ( 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…
Reference in New Issue