mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-11 17:30:19 +01:00
m-std-event-source: don't push events during the core dispose sequence
This commit is contained in:
parent
a982b7917c
commit
417b0dff4c
1 changed files with 6 additions and 1 deletions
|
|
@ -250,7 +250,12 @@ wp_standard_event_source_push_event (WpStandardEventSource *self,
|
|||
{
|
||||
|
||||
g_autoptr (WpCore) core = wp_object_get_core (WP_OBJECT (self));
|
||||
g_return_if_fail (core);
|
||||
|
||||
/* this can happen during the core dispose sequence; the weak ref to the
|
||||
core is invalidated before the registered objects are destroyed */
|
||||
if (!core)
|
||||
return;
|
||||
|
||||
g_autoptr (WpEventDispatcher) dispatcher =
|
||||
wp_event_dispatcher_get_instance (core);
|
||||
g_return_if_fail (dispatcher);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue