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
a863be59
Commit
a863be59
authored
Feb 11, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: SeekSlider: SeekStyle: fix memleak
parent
934eee8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/util/input_slider.cpp
+7
-1
modules/gui/qt4/util/input_slider.hpp
modules/gui/qt4/util/input_slider.hpp
+3
-0
No files found.
modules/gui/qt4/util/input_slider.cpp
View file @
a863be59
...
...
@@ -62,6 +62,7 @@ SeekSlider::SeekSlider( Qt::Orientation q, QWidget *_parent, bool _static )
chapters
=
NULL
;
mHandleLength
=
-
1
;
b_seekable
=
true
;
alternativeStyle
=
NULL
;
// prepare some static colors
QPalette
p
=
palette
();
...
...
@@ -111,7 +112,10 @@ SeekSlider::SeekSlider( Qt::Orientation q, QWidget *_parent, bool _static )
/* Use the new/classic style */
if
(
!
b_classic
)
setStyle
(
new
SeekStyle
);
{
alternativeStyle
=
new
SeekStyle
;
setStyle
(
alternativeStyle
);
}
/* Init to 0 */
setPosition
(
-
1.0
,
0
,
0
);
...
...
@@ -135,6 +139,8 @@ SeekSlider::SeekSlider( Qt::Orientation q, QWidget *_parent, bool _static )
SeekSlider
::~
SeekSlider
()
{
delete
chapters
;
if
(
alternativeStyle
)
delete
alternativeStyle
;
}
/***
...
...
modules/gui/qt4/util/input_slider.hpp
View file @
a863be59
...
...
@@ -46,6 +46,7 @@ class QTimer;
class
SeekPoints
;
class
QPropertyAnimation
;
class
QStyleOption
;
class
QCommonStyle
;
/* Input Slider derived from QSlider */
class
SeekSlider
:
public
QSlider
...
...
@@ -96,6 +97,8 @@ private:
QColor
tickpointForeground
;
QColor
shadowDark
;
QColor
shadowLight
;
QCommonStyle
*
alternativeStyle
;
/* Handle's animation */
qreal
mHandleOpacity
;
QPropertyAnimation
*
animHandle
;
...
...
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