summaryrefslogtreecommitdiffstats
path: root/src/trace/siox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace/siox.cpp')
-rw-r--r--src/trace/siox.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/trace/siox.cpp b/src/trace/siox.cpp
index f3bf50f55..12d7c20a8 100644
--- a/src/trace/siox.cpp
+++ b/src/trace/siox.cpp
@@ -656,7 +656,7 @@ GdkPixbuf *SioxImage::getGdkPixbuf()
GdkPixbuf *buf = gdk_pixbuf_new_from_data(pixdata,
GDK_COLORSPACE_RGB,
has_alpha, 8, width, height,
- rowstride, nullptr, nullptr);
+ rowstride, (GdkPixbufDestroyNotify)free, nullptr);
//### Fill in the cells with RGB values
int row = 0;
@@ -677,7 +677,6 @@ GdkPixbuf *SioxImage::getGdkPixbuf()
}
row += rowstride;
}
- free(pixdata);
return buf;
}