1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Replace code we should never hit by an assert, as it should be.

This commit is contained in:
Dave Davenport 2016-01-05 21:46:05 +01:00
parent e508d282dd
commit 70dd6e2cef

View file

@ -2001,14 +2001,7 @@ static void cleanup ()
}
// Cleanup
if ( display != NULL ) {
if ( main_window != None ) {
// We should never hit this code.
release_keyboard ( display );
XDestroyWindow ( display, main_window );
main_window = None;
XDestroyIC ( xic );
XCloseIM ( xim );
}
g_assert ( main_window == None );
if ( sncontext != NULL ) {
sn_launchee_context_unref ( sncontext );