bus: do not leak message on invalid handler return value

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6124>
This commit is contained in:
Xavier Claessens 2024-02-15 09:21:15 -05:00 committed by GStreamer Marge Bot
parent 57f12dd2fa
commit 22b7200d60

View file

@ -436,6 +436,7 @@ gst_bus_post (GstBus * bus, GstMessage * message)
}
default:
g_warning ("invalid return from bus sync handler");
gst_message_unref (message);
break;
}
return TRUE;