Skip to content

Commit 9327e72

Browse files
committed
Linux: do not remove class attributes, useless action
1 parent 22ecb0a commit 9327e72

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ History:
33
<see Git checking messages for history>
44

55
3.3.1 2018/xx/xx
6-
- Linux: fix a memory leak introduced with 7e8ae5703f0669f40532c2be917df4328bc3985e
6+
- Linux: fix a memory leak introduced with 7e8ae5703f0669f40532c2be917df4328bc3985e (fixes #72)
77

88
3.3.0 2018/09/04
99
- Linux: add an error handler for the XServer to prevent interpreter crash (fix #61)

mss/linux.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,14 @@ class MSS(MSSBase):
148148

149149
def __del__(self):
150150
# type: () -> None
151-
""" Disconnect from X server and clean-up locals. """
151+
""" Clean-up. """
152152

153+
# Disconnect from the X server
153154
try:
154155
self.xlib.XCloseDisplay(self.display)
155156
except AttributeError:
156157
pass
157158

158-
for attr in list(vars(self)):
159-
delattr(self, attr)
160-
161159
def __init__(self, display=None):
162160
# type: (bytes) -> None
163161
""" GNU/Linux initialisations. """

0 commit comments

Comments
 (0)