Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
07be8bb5
Commit
07be8bb5
authored
Aug 01, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memleaks: Fill in the destructor of simple preference.
parent
552b5247
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+12
-0
modules/gui/qt4/components/simple_preferences.hpp
modules/gui/qt4/components/simple_preferences.hpp
+1
-1
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
07be8bb5
...
...
@@ -568,6 +568,18 @@ void SPrefsPanel::updateAudioOptions( int number)
optionWidgets
[
fileW
]
->
setVisible
(
(
value
==
"aout_file"
)
);
}
SPrefsPanel
::~
SPrefsPanel
()
{
QList
<
ConfigControl
*>::
Iterator
conf_it
;
for
(
conf_it
=
controls
.
begin
()
;
conf_it
!=
controls
.
end
()
;
conf_it
++
)
{
ConfigControl
*
c
=
qobject_cast
<
ConfigControl
*>
(
*
conf_it
);
delete
c
;
}
controls
.
clear
();
}
void
SPrefsPanel
::
updateAudioVolume
(
int
volume
)
{
qobject_cast
<
QSpinBox
*>
(
optionWidgets
[
volLW
])
...
...
modules/gui/qt4/components/simple_preferences.hpp
View file @
07be8bb5
...
...
@@ -105,7 +105,7 @@ class SPrefsPanel : public QWidget
Q_OBJECT
public:
SPrefsPanel
(
intf_thread_t
*
,
QWidget
*
,
int
);
virtual
~
SPrefsPanel
()
{}
;
virtual
~
SPrefsPanel
();
void
apply
();
void
clean
();
private:
...
...
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