File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 22
33<see Git checking messages for history>
44
5+ 3.3.1 2018/xx/xx
6+ - Linux: fix a memory leak introduced with 7e8ae5703f0669f40532c2be917df4328bc3985e
7+
583.3.0 2018/09/04
69 - Linux: add an error handler for the XServer to prevent interpreter crash (fix #61)
710 - MSS: fix a ResourceWarning: unclosed file in setup.py
Original file line number Diff line number Diff line change 2929# built documents.
3030#
3131# The short X.Y version.
32- version = "3.3.0 "
32+ version = "3.3.1 "
3333
3434# The full version, including alpha/beta/rc tags.
3535release = "latest"
Original file line number Diff line number Diff line change 1313from .exception import ScreenShotError
1414from .factory import mss
1515
16- __version__ = "3.3.0 "
16+ __version__ = "3.3.1 "
1717__author__ = "Mickaël 'Tiger-222' Schoentgen"
1818__copyright__ = """
1919 Copyright (c) 2013-2018, Mickaël 'Tiger-222' Schoentgen
Original file line number Diff line number Diff line change @@ -148,12 +148,15 @@ class MSS(MSSBase):
148148
149149 def __del__ (self ):
150150 # type: () -> None
151- """ Disconnect from X server. """
151+ """ Disconnect from X server and clean-up locals . """
152152
153- if hasattr (self , "display" ):
154- if hasattr (self .display , "XCloseDisplay" ):
155- self .xlib .XCloseDisplay (self .display )
156- self .display = None
153+ try :
154+ self .xlib .XCloseDisplay (self .display )
155+ except AttributeError :
156+ pass
157+
158+ for attr in list (vars (self )):
159+ delattr (self , attr )
157160
158161 def __init__ (self , display = None ):
159162 # type: (bytes) -> None
You can’t perform that action at this time.
0 commit comments