mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
va: device: use gst_clear_object()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1529>
This commit is contained in:
parent
6af7ec3c0f
commit
f6a623d565
1 changed files with 1 additions and 2 deletions
|
@ -35,8 +35,7 @@ GST_DEFINE_MINI_OBJECT_TYPE (GstVaDevice, gst_va_device);
|
|||
static void
|
||||
gst_va_device_free (GstVaDevice * device)
|
||||
{
|
||||
if (device->display)
|
||||
gst_object_unref (device->display);
|
||||
gst_clear_object (&device->display);
|
||||
g_free (device->render_device_path);
|
||||
g_free (device);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue