summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-01-05 21:46:05 +0100
committerDave Davenport <qball@gmpclient.org>2016-01-05 21:46:05 +0100
commit70dd6e2cefa0438c9ce4fbb884eb0b8fdffdf1b5 (patch)
treef2a0eabe9ef58559f148a4bf2da235b7382be1f8
parente508d282dd8b31c6ec83309082a27a3b66042f88 (diff)
Replace code we should never hit by an assert, as it should be.
-rw-r--r--source/rofi.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source/rofi.c b/source/rofi.c
index a95ddbb6..cd843ea4 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -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 );