harness: Handle element not being set cleanly.
authorJan Schmidt <jan@centricular.com>
Fri, 30 Oct 2020 12:46:07 +0000 (23:46 +1100)
committerJan Schmidt <jan@centricular.com>
Fri, 30 Oct 2020 12:46:07 +0000 (23:46 +1100)
commitf6ce1686f108e2a722c466ee9748913ccec0af70
treec89aa659a5b46af924017e78898cb88b36bcec75
parent2a9267f2d47a2a17745532a112c97979fc17cdfb
harness: Handle element not being set cleanly.

If a harness is created with gst_harness_new_empty(), there
might not be an internal element to unref on cleanup.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/686>
libs/gst/check/gstharness.c
tests/check/libs/gstharness.c