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 2
2
3
3
<see Git checking messages for history>
4
4
5
+ 3.3.1 2018/xx/xx
6
+ - Linux: fix a memory leak introduced with 7e8ae5703f0669f40532c2be917df4328bc3985e
7
+
5
8
3.3.0 2018/09/04
6
9
- Linux: add an error handler for the XServer to prevent interpreter crash (fix #61)
7
10
- MSS: fix a ResourceWarning: unclosed file in setup.py
Original file line number Diff line number Diff line change 29
29
# built documents.
30
30
#
31
31
# The short X.Y version.
32
- version = "3.3.0 "
32
+ version = "3.3.1 "
33
33
34
34
# The full version, including alpha/beta/rc tags.
35
35
release = "latest"
Original file line number Diff line number Diff line change 13
13
from .exception import ScreenShotError
14
14
from .factory import mss
15
15
16
- __version__ = "3.3.0 "
16
+ __version__ = "3.3.1 "
17
17
__author__ = "Mickaël 'Tiger-222' Schoentgen"
18
18
__copyright__ = """
19
19
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):
148
148
149
149
def __del__ (self ):
150
150
# type: () -> None
151
- """ Disconnect from X server. """
151
+ """ Disconnect from X server and clean-up locals . """
152
152
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 )
157
160
158
161
def __init__ (self , display = None ):
159
162
# type: (bytes) -> None
You can’t perform that action at this time.
0 commit comments