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
d6aa5c4b
Commit
d6aa5c4b
authored
Dec 16, 2013
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: fix memory leak (allocate only when needed)
parent
d052232e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+4
-4
No files found.
modules/gui/qt4/dialogs/toolbar.cpp
View file @
d6aa5c4b
...
...
@@ -555,10 +555,6 @@ void DroppingController::createAndAddWidget( QBoxLayout *newControlLayout,
buttonType_e
i_type
,
int
i_option
)
{
doubleInt
*
value
=
new
doubleInt
;
value
->
i_type
=
i_type
;
value
->
i_option
=
i_option
;
/* Special case for SPACERS, who aren't QWidgets */
if
(
i_type
==
WIDGET_SPACER
||
i_type
==
WIDGET_SPACER_EXTEND
)
{
...
...
@@ -628,6 +624,10 @@ void DroppingController::createAndAddWidget( QBoxLayout *newControlLayout,
/* QList and QBoxLayout don't act the same with insert() */
if
(
i_index
<
0
)
i_index
=
newControlLayout
->
count
()
-
1
;
doubleInt
*
value
=
new
doubleInt
;
value
->
i_type
=
i_type
;
value
->
i_option
=
i_option
;
widgetList
.
insert
(
i_index
,
value
);
}
...
...
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