proxy: debug in dispose() so that we can print the pw_proxy pointer
in finalize() the pw_proxy is already gone and we always print null
This commit is contained in:
@@ -223,6 +223,11 @@ wp_proxy_dispose (GObject * object)
|
|||||||
{
|
{
|
||||||
WpProxyPrivate *priv = wp_proxy_get_instance_private (WP_PROXY(object));
|
WpProxyPrivate *priv = wp_proxy_get_instance_private (WP_PROXY(object));
|
||||||
|
|
||||||
|
g_debug ("%s:%p dispose (global %u; pw_proxy %p)",
|
||||||
|
G_OBJECT_TYPE_NAME (object), object,
|
||||||
|
priv->global ? priv->global->id : 0,
|
||||||
|
priv->pw_proxy);
|
||||||
|
|
||||||
/* this will trigger proxy_event_destroy() if the pw_proxy exists */
|
/* this will trigger proxy_event_destroy() if the pw_proxy exists */
|
||||||
if (priv->pw_proxy)
|
if (priv->pw_proxy)
|
||||||
pw_proxy_destroy (priv->pw_proxy);
|
pw_proxy_destroy (priv->pw_proxy);
|
||||||
@@ -235,11 +240,6 @@ wp_proxy_finalize (GObject * object)
|
|||||||
{
|
{
|
||||||
WpProxyPrivate *priv = wp_proxy_get_instance_private (WP_PROXY(object));
|
WpProxyPrivate *priv = wp_proxy_get_instance_private (WP_PROXY(object));
|
||||||
|
|
||||||
g_debug ("%s:%p destroyed (global %u; pw_proxy %p)",
|
|
||||||
G_OBJECT_TYPE_NAME (object), object,
|
|
||||||
priv->global ? priv->global->id : 0,
|
|
||||||
priv->pw_proxy);
|
|
||||||
|
|
||||||
g_clear_pointer (&priv->augment_tasks, g_ptr_array_unref);
|
g_clear_pointer (&priv->augment_tasks, g_ptr_array_unref);
|
||||||
g_clear_pointer (&priv->global, wp_global_unref);
|
g_clear_pointer (&priv->global, wp_global_unref);
|
||||||
g_weak_ref_clear (&priv->core);
|
g_weak_ref_clear (&priv->core);
|
||||||
|
Reference in New Issue
Block a user