projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6af7ec3
)
va: device: use gst_clear_object()
author
Víctor Manuel Jáquez Leal
<vjaquez@igalia.com>
Wed, 16 Sep 2020 17:14:30 +0000
(19:14 +0200)
committer
Víctor Manuel Jáquez Leal
<vjaquez@igalia.com>
Wed, 23 Sep 2020 16:19:22 +0000
(18:19 +0200)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1529>
sys/va/gstvadevice.c
patch
|
blob
|
history
diff --git
a/sys/va/gstvadevice.c
b/sys/va/gstvadevice.c
index
d666285
..
a00293f
100644
(file)
--- a/
sys/va/gstvadevice.c
+++ b/
sys/va/gstvadevice.c
@@
-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);
}