Commit 424477f6 authored by Nathan Lee's avatar Nathan Lee

Crashfix SIOX Trace (free memory properly)

#293

(backported from 52dea1f9)
parent 72836e91
Pipeline #69198678 passed with stages
in 8 minutes and 37 seconds
......@@ -661,7 +661,7 @@ GdkPixbuf *SioxImage::getGdkPixbuf()
GdkPixbuf *buf = gdk_pixbuf_new_from_data(pixdata,
GDK_COLORSPACE_RGB,
has_alpha, 8, width, height,
rowstride, NULL, NULL);
rowstride, (GdkPixbufDestroyNotify)free, NULL);
//### Fill in the cells with RGB values
int row = 0;
......@@ -682,7 +682,6 @@ GdkPixbuf *SioxImage::getGdkPixbuf()
}
row += rowstride;
}
free(pixdata);
return buf;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment