mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
57f12dd2fa
commit
22b7200d60
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue