aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/w32term.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 3e2e566adc..fea57849ad 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2763,9 +2763,13 @@ x_scroll_run (w, run)
/* If the dirty region is not what we expected, redraw the entire frame. */
if (!EqualRgn (combined, expect_dirty))
SET_FRAME_GARBAGED (f);
+
+ DeleteObject (dirty);
+ DeleteObject (combined);
}
UNBLOCK_INPUT;
+ DeleteObject (expect_dirty);
}