Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DLNA-RUI
gupnp
Commits
116f778d
Commit
116f778d
authored
Jan 23, 2011
by
Jens Georg
Committed by
Zeeshan Ali (Khattak)
Jan 24, 2011
Browse files
Unref server after call to unhost_path
Otherwise unhost_path will lazy-create a new SoupServer
parent
5f9cb20d
Changes
1
Hide whitespace changes
Inline
Side-by-side
libgupnp/gupnp-context.c
View file @
116f778d
...
...
@@ -234,11 +234,6 @@ gupnp_context_dispose (GObject *object)
context
->
priv
->
session
=
NULL
;
}
if
(
context
->
priv
->
server
)
{
g_object_unref
(
context
->
priv
->
server
);
context
->
priv
->
server
=
NULL
;
}
while
(
context
->
priv
->
host_path_datas
)
{
HostPathData
*
data
;
...
...
@@ -247,6 +242,11 @@ gupnp_context_dispose (GObject *object)
gupnp_context_unhost_path
(
context
,
data
->
server_path
);
}
if
(
context
->
priv
->
server
)
{
g_object_unref
(
context
->
priv
->
server
);
context
->
priv
->
server
=
NULL
;
}
/* Call super */
object_class
=
G_OBJECT_CLASS
(
gupnp_context_parent_class
);
object_class
->
dispose
(
object
);
...
...
Write
Preview
Markdown
is supported
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