Author: Anton Gulenko <[email protected]>
Branch: rstrategies
Changeset: r1047:be2ed404c997
Date: 2014-09-18 13:34 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/be2ed404c997/
Log: Closing the RSDL display after usage.
diff --git a/spyvm/display.py b/spyvm/display.py
--- a/spyvm/display.py
+++ b/spyvm/display.py
@@ -56,6 +56,10 @@
self._deferred_event = None
self._defer_updates = False
+ def __del__(self):
+ # Close the display.
+ RSDL.Quit()
+
def set_video_mode(self, w, h, d):
assert w > 0 and h > 0
assert d in [1, 2, 4, 8, 16, 32]
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit