leaks: Fix SIGSEGV detecting object type.
authorDoug Nazar <nazard@nazar.ca>
Sun, 11 Apr 2021 14:24:01 +0000 (10:24 -0400)
committerDoug Nazar <nazard@nazar.ca>
Mon, 12 Apr 2021 09:18:25 +0000 (05:18 -0400)
commitd323942999008689007e13fd406091e5f4a307b9
tree625012a84db24b35993096b209cde65d9f1af6d2
parentc711c8ed39e9d3bade36721c0a1b008be4c4a4bc
leaks: Fix SIGSEGV detecting object type.

G_IS_OBJECT & GST_IS_OBJECT work by following pointers which is unsafe
on certain architectures. GstMiniObject detection however does a lookup
to see if it's a valid type derived from G_TYPE_BOXED.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/791>
plugins/tracers/gstleaks.c