Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julian Bouzas
WirePlumber
Commits
23b66a8f
Commit
23b66a8f
authored
Nov 16, 2019
by
George Kiagiadakis
Browse files
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
parent
4ad4974f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/wp/proxy.c
View file @
23b66a8f
...
...
@@ -223,6 +223,11 @@ wp_proxy_dispose (GObject * 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 */
if
(
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
));
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
->
global
,
wp_global_unref
);
g_weak_ref_clear
(
&
priv
->
core
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment