diff options
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c index a0454c33e..c86d09678 100644 --- a/gdk-pixbuf/gdk-pixbuf.c +++ b/gdk-pixbuf/gdk-pixbuf.c @@ -715,6 +715,8 @@ gdk_pixbuf_get_pixels_with_length (const GdkPixbuf *pixbuf, gsize len; mut_pixbuf->pixels = g_bytes_unref_to_data (pixbuf->bytes, &len); mut_pixbuf->bytes = NULL; + mut_pixbuf->destroy_fn = free_buffer; + mut_pixbuf->destroy_fn_data = NULL; } if (length) |