Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ecf781

Browse files
authored
Merge pull request #10352 from DietmarSchwertberger/BACKENDWX_DESTROY_PAINTDC
FIX: Explicitly destroy created wx PaintDC
2 parents de1e1f1 + a641d10 commit 6ecf781

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,7 @@ def _onPaint(self, evt):
938938
self.draw(drawDC=drawDC)
939939
else:
940940
self.gui_repaint(drawDC=drawDC)
941+
drawDC.Destroy()
941942

942943
def _onSize(self, evt):
943944
"""

0 commit comments

Comments
 (0)