Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3033a3df
Commit
3033a3df
authored
May 16, 2008
by
Rafaël Carré
Committed by
Jean-Paul Saman
May 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a-few-per-libvlc-instance memory leaks
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
7d43a66c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/libvlc.c
src/libvlc.c
+5
-2
No files found.
src/libvlc.c
View file @
3033a3df
...
@@ -945,7 +945,7 @@ int VLC_CleanUp( int i_object )
...
@@ -945,7 +945,7 @@ int VLC_CleanUp( int i_object )
stats_HandlerDestroy
(
p_stats
);
stats_HandlerDestroy
(
p_stats
);
vlc_object_detach
(
(
vlc_object_t
*
)
p_stats
);
vlc_object_detach
(
(
vlc_object_t
*
)
p_stats
);
vlc_object_release
(
(
vlc_object_t
*
)
p_stats
);
vlc_object_release
(
(
vlc_object_t
*
)
p_stats
);
// TODO: Delete it
vlc_object_destroy
(
p_stats
);
}
}
/*
/*
...
@@ -2556,12 +2556,14 @@ static void InitDeviceValues( vlc_t *p_vlc )
...
@@ -2556,12 +2556,14 @@ static void InitDeviceValues( vlc_t *p_vlc )
DBusError
error
;
DBusError
error
;
#ifdef HAVE_HAL_1
#ifdef HAVE_HAL_1
ctx
=
libhal_ctx_new
();
ctx
=
libhal_ctx_new
();
if
(
!
ctx
)
return
;
if
(
!
ctx
)
return
;
dbus_error_init
(
&
error
);
dbus_error_init
(
&
error
);
p_connection
=
dbus_bus_get
(
DBUS_BUS_SYSTEM
,
&
error
);
p_connection
=
dbus_bus_get
(
DBUS_BUS_SYSTEM
,
&
error
);
if
(
dbus_error_is_set
(
&
error
)
)
if
(
dbus_error_is_set
(
&
error
)
)
{
{
libhal_ctx_shutdown
(
ctx
,
&
error
);
libhal_ctx_free
(
ctx
);
dbus_error_free
(
&
error
);
dbus_error_free
(
&
error
);
return
;
return
;
}
}
...
@@ -2622,6 +2624,7 @@ static void InitDeviceValues( vlc_t *p_vlc )
...
@@ -2622,6 +2624,7 @@ static void InitDeviceValues( vlc_t *p_vlc )
#ifdef HAVE_HAL_1
#ifdef HAVE_HAL_1
libhal_ctx_shutdown
(
ctx
,
NULL
);
libhal_ctx_shutdown
(
ctx
,
NULL
);
libhal_ctx_free
(
ctx
);
#else
#else
hal_shutdown
(
ctx
);
hal_shutdown
(
ctx
);
#endif
#endif
...
...
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