Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
e82d21d7
Commit
e82d21d7
authored
Apr 01, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
factorisation and add a missing dbus_connection_unref.
parent
e5f21614
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
modules/services_discovery/hal.c
modules/services_discovery/hal.c
+4
-5
No files found.
modules/services_discovery/hal.c
View file @
e82d21d7
...
...
@@ -103,7 +103,7 @@ static int Open( vlc_object_t *p_this )
return
VLC_ENOMEM
;
DBusError
dbus_error
;
DBusConnection
*
p_connection
;
DBusConnection
*
p_connection
=
NULL
;
p_sd_global
=
p_sd
;
p_sys
->
i_devices_number
=
0
;
...
...
@@ -124,10 +124,7 @@ static int Open( vlc_object_t *p_this )
if
(
dbus_error_is_set
(
&
dbus_error
)
)
{
msg_Err
(
p_sd
,
"unable to connect to DBUS: %s"
,
dbus_error
.
message
);
dbus_error_free
(
&
dbus_error
);
libhal_ctx_free
(
p_sys
->
p_ctx
);
free
(
p_sys
);
return
VLC_EGENERIC
;
goto
error
;
}
libhal_ctx_set_dbus_connection
(
p_sys
->
p_ctx
,
p_connection
);
p_sys
->
p_connection
=
p_connection
;
...
...
@@ -149,6 +146,8 @@ static int Open( vlc_object_t *p_this )
return
VLC_SUCCESS
;
error:
if
(
p_connection
)
dbus_connection_unref
(
p_connection
);
dbus_error_free
(
&
dbus_error
);
libhal_ctx_free
(
p_sys
->
p_ctx
);
free
(
p_sys
);
...
...
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