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
798ee1ab
Commit
798ee1ab
authored
May 20, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: fix memory leak
parent
bccf8c00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
modules/gui/qt4/recents.cpp
modules/gui/qt4/recents.cpp
+7
-8
No files found.
modules/gui/qt4/recents.cpp
View file @
798ee1ab
...
...
@@ -217,14 +217,12 @@ int Open::openMRLwithOptions( intf_thread_t* p_intf,
if
(
options
!=
NULL
&&
options
->
count
()
>
0
)
{
ppsz_options
=
(
const
char
**
)
malloc
(
options
->
count
()
);
if
(
ppsz_options
)
{
for
(
int
j
=
0
;
j
<
options
->
count
();
j
++
)
{
QString
option
=
colon_unescape
(
options
->
at
(
j
)
);
if
(
!
option
.
isEmpty
()
)
{
ppsz_options
[
j
]
=
qtu
(
option
);
i_options
++
;
}
ppsz_options
=
new
const
char
*
[
options
->
count
()];
for
(
int
j
=
0
;
j
<
options
->
count
();
j
++
)
{
QString
option
=
colon_unescape
(
options
->
at
(
j
)
);
if
(
!
option
.
isEmpty
()
)
{
ppsz_options
[
j
]
=
qtu
(
option
);
i_options
++
;
}
}
}
...
...
@@ -243,6 +241,7 @@ int Open::openMRLwithOptions( intf_thread_t* p_intf,
if
(
i_ret
==
VLC_SUCCESS
&&
b_start
&&
b_playlist
)
RecentsMRL
::
getInstance
(
p_intf
)
->
addRecent
(
mrl
);
delete
[]
options
;
return
i_ret
;
}
...
...
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