iqa: Plug a leak allocating twice the same data

This commit is contained in:
Thibault Saunier 2017-02-14 11:09:46 -03:00
parent c11e93c9da
commit 40c74694ab

View file

@ -157,7 +157,6 @@ do_dssim (GstIqa * self, GstVideoFrame * ref, GstVideoFrame * cmp,
out = (dssim_rgba *) out_info.data;
ptrs = g_malloc (sizeof (char **) * ref->info.height);
ptrs2 = g_malloc (sizeof (char **) * cmp->info.height);
for (y = 0; y < ref->info.height; y++) {
ptrs[y] = ref_info.data + (ref->info.width * 4 * y);