Skip to content
Snippets Groups Projects
Commit 1e6c7488 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

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

parent 0c9d6e82
No related branches found
No related tags found
No related merge requests found
...@@ -51,11 +51,11 @@ proxy_event_destroy (void *data) ...@@ -51,11 +51,11 @@ proxy_event_destroy (void *data)
{ {
WpProxyPrivate *self = wp_proxy_get_instance_private (WP_PROXY(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 */ /* Set the proxy to NULL */
self->proxy = NULL; self->proxy = NULL;
/* Emit the destroy signal */
g_signal_emit (data, wp_proxy_signals[SIGNAL_DESTROYED], 0);
} }
static void static void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment