summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2020-01-01 19:54:13 +0800
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-01-03 06:49:07 +0000
commit196fef9392cd6213a548d1f19be88b971255ee53 (patch)
treef099f08787ea4538f8906a3e48187f4e802ca466
parentb3570febf7d6a1374d1f516a729861ce39458c66 (diff)
libs: display: fix a resource leak in X11 pixmap format.
-rw-r--r--gst-libs/gst/vaapi/gstvaapidisplay_x11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_x11.c b/gst-libs/gst/vaapi/gstvaapidisplay_x11.c
index f5fa2fce..a1c82e68 100644
--- a/gst-libs/gst/vaapi/gstvaapidisplay_x11.c
+++ b/gst-libs/gst/vaapi/gstvaapidisplay_x11.c
@@ -512,6 +512,7 @@ ensure_pix_fmts (GstVaapiDisplayX11 * display)
n++;
}
priv->pixmap_formats->len = n;
+ XFree (pix_fmts);
return TRUE;
}