diff options
author | georgeps <georgeps> | 2009-01-11 19:29:42 (GMT) |
---|---|---|
committer | georgeps <georgeps> | 2009-01-11 19:29:42 (GMT) |
commit | b7efacd1672a9326f261a6e30d116c6b47a701d5 (patch) | |
tree | f762b76ea4a3f50bb34e5312d046fdc3350a9f0e /generic/tkEvent.c | |
parent | 4740398b1118a1320c428ce9b9f54a8fb1525b80 (diff) | |
download | tk-b7efacd1672a9326f261a6e30d116c6b47a701d5.zip tk-b7efacd1672a9326f261a6e30d116c6b47a701d5.tar.gz tk-b7efacd1672a9326f261a6e30d116c6b47a701d5.tar.bz2 |
* generic/tkEvent.c: Backport a fix from 8.6 for a NULL pointer
dereference in CreateXIC.
Diffstat (limited to 'generic/tkEvent.c')
-rw-r--r-- | generic/tkEvent.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tkEvent.c b/generic/tkEvent.c index 2f27eab..2a13871 100644 --- a/generic/tkEvent.c +++ b/generic/tkEvent.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkEvent.c,v 1.35.2.1 2008/08/05 20:31:53 jenglish Exp $ + * RCS: @(#) $Id: tkEvent.c,v 1.35.2.2 2009/01/11 19:29:42 georgeps Exp $ */ #include "tkInt.h" @@ -359,6 +359,12 @@ CreateXIC( XFree(preedit_attlist); } + + if (winPtr->inputContext == NULL) { + /* XCreateIC failed. */ + return; + } + /* * Adjust the window's event mask if the IM requires it. */ |