When getting sample from taglist, the memory is not being freed resulting in memory leak.
https://bugzilla.gnome.org/show_bug.cgi?id=756070
guint8 *data;
gint size;
- if (!gst_buffer_map (buf, &mapinfo, GST_MAP_READ))
+ if (!gst_buffer_map (buf, &mapinfo, GST_MAP_READ)) {
+ gst_sample_unref (sample);
continue;
+ }
size = mapinfo.size;
data = mapinfo.data;
"version");
}
}
+ gst_sample_unref (sample);
}
}
} else {
GST_WARNING ("no image or caps: %p, caps=%" GST_PTR_FORMAT, image, caps);
}
+ gst_sample_unref (sample);
}
}