mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
keep pointer to im object to prevent dereferencing
This commit is contained in:
parent
c36c5fcf0f
commit
cedaaad1cf
|
@ -54,6 +54,9 @@ class PyAccess(object):
|
||||||
self.xsize = vals['xsize']
|
self.xsize = vals['xsize']
|
||||||
self.ysize = vals['ysize']
|
self.ysize = vals['ysize']
|
||||||
|
|
||||||
|
# Keep pointer to im object to prevent dereferencing.
|
||||||
|
self._im = img.im
|
||||||
|
|
||||||
# Debugging is polluting test traces, only useful here
|
# Debugging is polluting test traces, only useful here
|
||||||
# when hacking on PyAccess
|
# when hacking on PyAccess
|
||||||
# logger.debug("%s", vals)
|
# logger.debug("%s", vals)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user