proxy: avoid crashing when the WpProxy is unrefed in the "destroyed" signal handler

This commit is contained in:
George Kiagiadakis 2019-06-20 18:55:50 +03:00
parent 0c9d6e8282
commit 1e6c7488bd

View file

@ -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