diff options
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapisurface.c')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapisurface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapisurface.c b/gst-libs/gst/vaapi/gstvaapisurface.c index 5c821f6b..64ab118e 100644 --- a/gst-libs/gst/vaapi/gstvaapisurface.c +++ b/gst-libs/gst/vaapi/gstvaapisurface.c @@ -61,8 +61,7 @@ gst_vaapi_surface_destroy_subpictures (GstVaapiSurface * surface) { if (surface->subpictures) { g_ptr_array_foreach (surface->subpictures, destroy_subpicture_cb, surface); - g_ptr_array_free (surface->subpictures, TRUE); - surface->subpictures = NULL; + g_clear_pointer (&surface->subpictures, g_ptr_array_unref); } } |