mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04:00
Replace code we should never hit by an assert, as it should be.
This commit is contained in:
parent
e508d282dd
commit
70dd6e2cef
1 changed files with 1 additions and 8 deletions
|
@ -2001,14 +2001,7 @@ static void cleanup ()
|
||||||
}
|
}
|
||||||
// Cleanup
|
// Cleanup
|
||||||
if ( display != NULL ) {
|
if ( display != NULL ) {
|
||||||
if ( main_window != None ) {
|
g_assert ( main_window == None );
|
||||||
// We should never hit this code.
|
|
||||||
release_keyboard ( display );
|
|
||||||
XDestroyWindow ( display, main_window );
|
|
||||||
main_window = None;
|
|
||||||
XDestroyIC ( xic );
|
|
||||||
XCloseIM ( xim );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( sncontext != NULL ) {
|
if ( sncontext != NULL ) {
|
||||||
sn_launchee_context_unref ( sncontext );
|
sn_launchee_context_unref ( sncontext );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue