summaryrefslogtreecommitdiffstats
path: root/win/tkWinWm.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r--win/tkWinWm.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index ba52b32..e3948e0 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -2463,7 +2463,15 @@ TkpWmGetState(
static void CheckForPointer(TkWindow *winPtr)
{
- POINT mouse;
+ 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();
TkWindow **windows = TkWmStackorderToplevel(winPtr->mainPtr->winPtr);