Gdk.cairo_surface_create_from_pixbuf leaks when pixbuf is from GBytes
Submitted by Bug flys
Link to original bug (#774471)
Description
Created attachment 339922 test case
When a Cairo Surface was created from a Pixbuf, which in turn was created from GBytes pixel data, the pixels of GBytes are leaked after the surface gone out of the scope.
I'm not sure if it is a bug in python binding or in Gdk itself.
Attached was a script showing the problem.
Attachment 339922, "test case":
test-gbytes-memory.py