Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
1245b2b3
Commit
1245b2b3
authored
May 31, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_list_children: fix memory leaks
parent
3bccf493
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
modules/gui/ncurses.c
modules/gui/ncurses.c
+1
-3
modules/gui/qt4/dialogs/messages.cpp
modules/gui/qt4/dialogs/messages.cpp
+1
-4
No files found.
modules/gui/ncurses.c
View file @
1245b2b3
...
...
@@ -1493,14 +1493,13 @@ static void DumpObject( intf_thread_t *p_intf, int *l, vlc_object_t *p_obj, int
p_obj
->
psz_object_type
,
p_obj
->
i_object_id
);
vlc_list_t
*
list
=
vlc_list_children
(
p_obj
);
vlc_object_release
(
p_obj
);
for
(
int
i
=
0
;
i
<
list
->
i_count
;
i
++
)
{
MainBoxWrite
(
p_intf
,
*
l
,
1
+
2
*
i_level
,
i
==
list
->
i_count
-
1
?
"`-"
:
"|-"
);
DumpObject
(
p_intf
,
l
,
list
->
p_values
[
i
].
p_object
,
i_level
+
1
);
}
vlc_list_release
(
list
);
}
static
void
Redraw
(
intf_thread_t
*
p_intf
,
time_t
*
t_last_refresh
)
...
...
@@ -1984,7 +1983,6 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
{
int
l
=
0
;
DrawBox
(
p_sys
->
w
,
y
++
,
0
,
h
,
COLS
,
_
(
" Objects "
),
p_sys
->
b_color
);
vlc_object_yield
(
p_intf
->
p_libvlc
);
DumpObject
(
p_intf
,
&
l
,
VLC_OBJECT
(
p_intf
->
p_libvlc
),
0
);
p_sys
->
i_box_lines_total
=
l
;
...
...
modules/gui/qt4/dialogs/messages.cpp
View file @
1245b2b3
...
...
@@ -217,10 +217,9 @@ void MessagesDialog::buildTree( QTreeWidgetItem *parentItem,
item
->
setExpanded
(
true
);
vlc_list_t
*
l
=
vlc_list_children
(
p_obj
);
vlc_object_release
(
p_obj
);
for
(
int
i
=
0
;
i
<
l
->
i_count
;
i
++
)
buildTree
(
item
,
l
->
p_values
[
i
].
p_object
);
vlc_list_release
(
l
);
}
void
MessagesDialog
::
clearOrUpdate
()
...
...
@@ -234,8 +233,6 @@ void MessagesDialog::clearOrUpdate()
void
MessagesDialog
::
updateTree
()
{
modulesTree
->
clear
();
vlc_object_yield
(
p_intf
->
p_libvlc
);
buildTree
(
NULL
,
VLC_OBJECT
(
p_intf
->
p_libvlc
)
);
}
...
...
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