Commit 5e8e8476 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by GStreamer Merge Bot

docs: Prevent potential NULL pointer dereference when serializing plugin object types

CID 1464007

Part-of: <!516>
parent 221cb036
Pipeline #157037 waiting for manual action with stages
in 30 seconds
......@@ -239,7 +239,7 @@ _serialize_object (GString * json, GHashTable * seen_other_types, GType gtype)
g_string_append_c (json, '}');
if (other_types->len) {
if (other_types && other_types->len) {
g_string_append_printf (json, ",%s", other_types->str);
g_string_free (other_types, TRUE);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment