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
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
Show 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 )
...
@@ -62,6 +62,7 @@ SeekSlider::SeekSlider( Qt::Orientation q, QWidget *_parent, bool _static )
chapters
=
NULL
;
chapters
=
NULL
;
mHandleLength
=
-
1
;
mHandleLength
=
-
1
;
b_seekable
=
true
;
b_seekable
=
true
;
alternativeStyle
=
NULL
;
// prepare some static colors
// prepare some static colors
QPalette
p
=
palette
();
QPalette
p
=
palette
();
...
@@ -111,7 +112,10 @@ SeekSlider::SeekSlider( Qt::Orientation q, QWidget *_parent, bool _static )
...
@@ -111,7 +112,10 @@ SeekSlider::SeekSlider( Qt::Orientation q, QWidget *_parent, bool _static )
/* Use the new/classic style */
/* Use the new/classic style */
if
(
!
b_classic
)
if
(
!
b_classic
)
setStyle
(
new
SeekStyle
);
{
alternativeStyle
=
new
SeekStyle
;
setStyle
(
alternativeStyle
);
}
/* Init to 0 */
/* Init to 0 */
setPosition
(
-
1.0
,
0
,
0
);
setPosition
(
-
1.0
,
0
,
0
);
...
@@ -135,6 +139,8 @@ SeekSlider::SeekSlider( Qt::Orientation q, QWidget *_parent, bool _static )
...
@@ -135,6 +139,8 @@ SeekSlider::SeekSlider( Qt::Orientation q, QWidget *_parent, bool _static )
SeekSlider
::~
SeekSlider
()
SeekSlider
::~
SeekSlider
()
{
{
delete
chapters
;
delete
chapters
;
if
(
alternativeStyle
)
delete
alternativeStyle
;
}
}
/***
/***
...
...
modules/gui/qt4/util/input_slider.hpp
View file @
a863be59
...
@@ -46,6 +46,7 @@ class QTimer;
...
@@ -46,6 +46,7 @@ class QTimer;
class
SeekPoints
;
class
SeekPoints
;
class
QPropertyAnimation
;
class
QPropertyAnimation
;
class
QStyleOption
;
class
QStyleOption
;
class
QCommonStyle
;
/* Input Slider derived from QSlider */
/* Input Slider derived from QSlider */
class
SeekSlider
:
public
QSlider
class
SeekSlider
:
public
QSlider
...
@@ -96,6 +97,8 @@ private:
...
@@ -96,6 +97,8 @@ private:
QColor
tickpointForeground
;
QColor
tickpointForeground
;
QColor
shadowDark
;
QColor
shadowDark
;
QColor
shadowLight
;
QColor
shadowLight
;
QCommonStyle
*
alternativeStyle
;
/* Handle's animation */
/* Handle's animation */
qreal
mHandleOpacity
;
qreal
mHandleOpacity
;
QPropertyAnimation
*
animHandle
;
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