Skip to content

Commit 82ec65a

Browse files
committed
Linux: destroy ximage; important
1 parent cba9723 commit 82ec65a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
# built documents.
6060
#
6161
# The short X.Y version.
62-
version = u'2.0.0'
62+
version = '2.0.7'
6363
# The full version, including alpha/beta/rc tags.
6464
release = 'latest'
6565

mss/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from .exception import ScreenshotError
1616
from .factory import mss
1717

18-
__version__ = '2.0.6'
18+
__version__ = '2.0.7'
1919
__author__ = "Mickaël 'Tiger-222' Schoentgen"
2020
__copyright__ = '''
2121
Copyright (c) 2013-2016, Mickaël 'Tiger-222' Schoentgen

mss/linux.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ def get_pixels(self, monitor):
245245
buf_len = self.height * self.width * 4
246246
data = cast(ximage.contents.data, POINTER(c_ubyte * buf_len))
247247
self.image = self.bgra_to_rgb(bytearray(data.contents))
248+
self.xlib.XDestroyImage(ximage)
248249
return self.image
249250

250251

0 commit comments

Comments
 (0)