mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 18:10:13 +01:00
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:
parent
4ad4974f27
commit
23b66a8f43
1 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue