Skip to content

Commit f819240

Browse files
committed
explain del
1 parent d8ca4de commit f819240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/blackrenderer/backends/skia.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,5 +232,5 @@ class SkiaSVGSurface(SkiaPDFSurface):
232232
def _drawPictureToStream(self, picture, stream):
233233
canvas = skia.SVGCanvas.Make(picture.cullRect(), stream)
234234
canvas.drawPicture(picture)
235-
del canvas
235+
del canvas # hand holding skia-python with GC: it needs to go before stream
236236
stream.flush()

0 commit comments

Comments
 (0)