mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-02-19 19:30:36 +01:00
proxy: avoid crashing when the WpProxy is unrefed in the "destroyed" signal handler
This commit is contained in:
parent
0c9d6e8282
commit
1e6c7488bd
1 changed files with 3 additions and 3 deletions
|
|
@ -51,11 +51,11 @@ proxy_event_destroy (void *data)
|
|||
{
|
||||
WpProxyPrivate *self = wp_proxy_get_instance_private (WP_PROXY(data));
|
||||
|
||||
/* Emit the destroy signal */
|
||||
g_signal_emit (data, wp_proxy_signals[SIGNAL_DESTROYED], 0);
|
||||
|
||||
/* Set the proxy to NULL */
|
||||
self->proxy = NULL;
|
||||
|
||||
/* Emit the destroy signal */
|
||||
g_signal_emit (data, wp_proxy_signals[SIGNAL_DESTROYED], 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue