libs: display: fix a resource leak in X11 pixmap format.

This commit is contained in:
He Junyan 2020-01-01 19:54:13 +08:00 committed by GStreamer Merge Bot
parent b3570febf7
commit 196fef9392

View file

@ -512,6 +512,7 @@ ensure_pix_fmts (GstVaapiDisplayX11 * display)
n++;
}
priv->pixmap_formats->len = n;
XFree (pix_fmts);
return TRUE;
}