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
840d47a8
Commit
840d47a8
authored
Sep 06, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: MLModel: fix memleak
parent
40edf1ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
modules/gui/qt4/components/playlist/ml_model.cpp
modules/gui/qt4/components/playlist/ml_model.cpp
+8
-2
No files found.
modules/gui/qt4/components/playlist/ml_model.cpp
View file @
840d47a8
...
...
@@ -65,8 +65,13 @@ MLModel::MLModel( intf_thread_t* _p_intf, QObject *parent )
if
(
!
p_ml
)
return
;
vlc_array_t
*
p_result_array
=
vlc_array_new
();
ml_Find
(
p_ml
,
p_result_array
,
ML_MEDIA
);
insertResultArray
(
p_result_array
);
if
(
p_result_array
)
{
ml_Find
(
p_ml
,
p_result_array
,
ML_MEDIA
);
insertResultArray
(
p_result_array
);
ml_DestroyResultArray
(
p_result_array
);
vlc_array_destroy
(
p_result_array
);
}
var_AddCallback
(
p_ml
,
"media-added"
,
mediaAdded
,
this
);
var_AddCallback
(
p_ml
,
"media-deleted"
,
mediaDeleted
,
this
);
...
...
@@ -593,6 +598,7 @@ static int mediaAdded( vlc_object_t *p_this, char const *psz_var,
return
VLC_EGENERIC
;
}
p_model
->
insertResultArray
(
p_result
);
ml_DestroyResultArray
(
p_result
);
vlc_array_destroy
(
p_result
);
return
VLC_SUCCESS
;
}
...
...
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