]> Pileus Git - ~andy/gtk/blobdiff - modules/input/gtkimcontextime.c
Change FSF Address
[~andy/gtk] / modules / input / gtkimcontextime.c
index 786fb9d40eeb4b63b6b7e6885541e261a587c8af..3dd06506e48c4cb668e0d858bdc6d525de267bcb 100644 (file)
@@ -14,9 +14,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  *
  */
 
@@ -348,6 +346,9 @@ gtk_im_context_ime_reset (GtkIMContext *context)
   HWND hwnd;
   HIMC himc;
 
+  if (!context_ime->client_window)
+    return;
+
   hwnd = GDK_WINDOW_HWND (context_ime->client_window);
   himc = ImmGetContext (hwnd);
   if (!himc)