aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortassaron2022-05-02 19:37:02 -0400
committertassaron2022-05-02 19:37:02 -0400
commitfdbaf844230b01ff96f20863b762cc83fad34c38 (patch)
tree96d1e1c14fca27ee8505a14d2d24bb03684f87fd /src
parentc13d8a3e8a23dcedfcd3d7cea800e7c29aa47e80 (diff)
add useful comment about why this reference exists
Diffstat (limited to 'src')
-rw-r--r--src/gui/preview_thread.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/preview_thread.py b/src/gui/preview_thread.py
index 8ec5d28..3943a5c 100644
--- a/src/gui/preview_thread.py
+++ b/src/gui/preview_thread.py
@@ -80,6 +80,8 @@ class Worker(QtCore.QObject):
except RuntimeError as e:
log.error(str(e))
else:
+ # We must store a reference to this QImage
+ # or else Qt will garbage-collect it on the C++ side
self.frame = ImageQt(frame)
self.imageCreated.emit(QtGui.QImage(self.frame))