Skip to content

Commit 936af08

Browse files
Merge pull request #137 from benoit-pierre/fix_memory_leak
fix increasing memory usage on display instantiation
2 parents 220fd9b + a8f6c73 commit 936af08

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
NEWS for Python X Library
22

3+
Version 0.25
4+
============
5+
6+
Bug Fixes
7+
---------
8+
9+
- fix increasing memory usage on display instantiation
10+
11+
NV-CONTROL extension
12+
--------------------
13+
14+
- add first implementation by Roberto Leinardi (@leinardi)
15+
16+
---
317
Version 0.24
418
============
519

Xlib/display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@
6262
}
6363

6464
class _BaseDisplay(protocol_display.Display):
65-
resource_classes = _resource_baseclasses.copy()
6665

6766
# Implement a cache of atom names, used by Window objects when
6867
# dealing with some ICCCM properties not defined in Xlib.Xatom
6968

7069
def __init__(self, *args, **keys):
70+
self.resource_classes = _resource_baseclasses.copy()
7171
protocol_display.Display.__init__(self, *args, **keys)
7272
self._atom_cache = {}
7373

Xlib/protocol/display.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def bytesview(data, offset=0, size=None):
7676

7777

7878
class Display(object):
79-
resource_classes = {}
8079
extension_major_opcodes = {}
8180
error_classes = error.xerror_class.copy()
8281
event_classes = event.event_class.copy()

0 commit comments

Comments
 (0)