--- rxvt-unicode/src/main.C 2012/12/30 15:38:04 1.387 +++ rxvt-unicode/src/main.C 2013/02/17 00:52:04 1.389 @@ -241,9 +241,12 @@ im_destroy (); #endif scrollBar.destroy (); - if (gc) XFreeGC (dpy, gc); + + if (gc) + XFreeGC (dpy, gc); delete drawable; + // destroy all windows if (parent) XDestroyWindow (dpy, parent); @@ -1371,7 +1374,7 @@ set_environ (envv); - if (! ((p = XSetLocaleModifiers (modifiers)) && *p)) + if (!((p = XSetLocaleModifiers (modifiers)) && *p)) return false; input_method = display->get_xim (locale, modifiers);