From 45cf6fa232da6bad0cd0647f11b07fcd52a7a7ae Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Tue, 1 Jun 2021 22:50:02 -0700 Subject: [PATCH] Remove comment about QImage data references Comment was out of date and no longer relevant, removing at @pijyoi's suggestion. --- pyqtgraph/functions.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pyqtgraph/functions.py b/pyqtgraph/functions.py index 6abfecce..b6242c4e 100644 --- a/pyqtgraph/functions.py +++ b/pyqtgraph/functions.py @@ -1423,10 +1423,6 @@ def ndarray_to_qimage(arr, fmt): h, w = arr.shape[:2] bytesPerLine = arr.strides[0] qimg = QtGui.QImage(img_ptr, w, h, bytesPerLine, fmt) - - # Note that the bindings that support ndarray directly already hold a reference - # to it. The manual reference below is only needed for those bindings that take - # in a raw pointer. qimg.data = arr return qimg