summaryrefslogtreecommitdiffstats
path: root/win/tkWinWm.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r--win/tkWinWm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index ba52b32..c02e1f5 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -2463,6 +2463,14 @@ TkpWmGetState(
static void CheckForPointer(TkWindow *winPtr)
{
+ if (winPtr == NULL || winPtr->mainPtr == NULL) {
+ /*
+ * Bug [d233f01e2a] - clipboard clean up after main window destroyed
+ * Nothing to do.
+ */
+ return;
+ }
+
POINT mouse;
int x, y;
unsigned int state = TkWinGetModifierState();