Skip to content

Commit d75fca3

Browse files
committed
Console.__del__ fix, the main consoles is now deleted when gc'd
1 parent 383ee1c commit d75fca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tdl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def __del__(self):
823823
#if isinstance(self._as_parameter_, _ctypes.c_void_p):
824824
if self._as_parameter_ is _ffi.NULL:
825825
# do we recognise this root console?
826-
if(_rootConsoleRef and _rootConsoleRef is self):
826+
if(_rootConsoleRef and _rootConsoleRef() is self):
827827
_rootinitialized = False
828828
_rootConsoleRef = None
829829
_lib.TCOD_console_delete(self._as_parameter_)

0 commit comments

Comments
 (0)