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
36f0edc9
Commit
36f0edc9
authored
Aug 01, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preferences: fix some memleaks and fix horrible video-filter bug. :D
parent
22dbf2bf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
11 deletions
+16
-11
modules/gui/qt4/components/complete_preferences.cpp
modules/gui/qt4/components/complete_preferences.cpp
+7
-0
modules/gui/qt4/components/complete_preferences.hpp
modules/gui/qt4/components/complete_preferences.hpp
+1
-1
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+5
-3
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+3
-7
No files found.
modules/gui/qt4/components/complete_preferences.cpp
View file @
36f0edc9
...
@@ -518,5 +518,12 @@ void AdvPrefsPanel::apply()
...
@@ -518,5 +518,12 @@ void AdvPrefsPanel::apply()
c
->
doApply
(
p_intf
);
c
->
doApply
(
p_intf
);
}
}
}
}
void
AdvPrefsPanel
::
clean
()
void
AdvPrefsPanel
::
clean
()
{}
{}
AdvPrefsPanel
::~
AdvPrefsPanel
()
{
qDeleteAll
(
controls
);
controls
.
clear
();
}
modules/gui/qt4/components/complete_preferences.hpp
View file @
36f0edc9
...
@@ -85,7 +85,7 @@ class AdvPrefsPanel : public QWidget
...
@@ -85,7 +85,7 @@ class AdvPrefsPanel : public QWidget
public:
public:
AdvPrefsPanel
(
intf_thread_t
*
,
QWidget
*
,
PrefsItemData
*
);
AdvPrefsPanel
(
intf_thread_t
*
,
QWidget
*
,
PrefsItemData
*
);
AdvPrefsPanel
(
QWidget
*
);
AdvPrefsPanel
(
QWidget
*
);
virtual
~
AdvPrefsPanel
()
{}
;
virtual
~
AdvPrefsPanel
();
void
apply
();
void
apply
();
void
clean
();
void
clean
();
private:
private:
...
...
modules/gui/qt4/components/preferences_widgets.cpp
View file @
36f0edc9
...
@@ -606,8 +606,11 @@ ModuleListConfigControl::ModuleListConfigControl( vlc_object_t *_p_this,
...
@@ -606,8 +606,11 @@ ModuleListConfigControl::ModuleListConfigControl( vlc_object_t *_p_this,
QGridLayout
*
l
,
int
&
line
)
:
QGridLayout
*
l
,
int
&
line
)
:
VStringConfigControl
(
_p_this
,
_p_item
,
_parent
)
VStringConfigControl
(
_p_this
,
_p_item
,
_parent
)
{
{
groupBox
=
NULL
;
if
(
!
p_item
->
psz_text
)
return
;
groupBox
=
new
QGroupBox
(
qtr
(
p_item
->
psz_text
)
);
groupBox
=
new
QGroupBox
(
qtr
(
p_item
->
psz_text
)
);
text
=
new
QLineEdit
()
;
text
=
new
QLineEdit
;
QGridLayout
*
layoutGroupBox
=
new
QGridLayout
(
groupBox
);
QGridLayout
*
layoutGroupBox
=
new
QGridLayout
(
groupBox
);
finish
(
bycat
);
finish
(
bycat
);
...
@@ -641,8 +644,7 @@ ModuleListConfigControl::~ModuleListConfigControl()
...
@@ -641,8 +644,7 @@ ModuleListConfigControl::~ModuleListConfigControl()
{
{
delete
*
it
;
delete
*
it
;
}
}
delete
groupBox
;
if
(
groupBox
)
delete
groupBox
;
delete
text
;
}
}
#define CHECKBOX_LISTS \
#define CHECKBOX_LISTS \
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
36f0edc9
...
@@ -40,6 +40,8 @@
...
@@ -40,6 +40,8 @@
#include <QUrl>
#include <QUrl>
#include <QVBoxLayout>
#include <QVBoxLayout>
#include <QtAlgorithms>
#include <string>
#include <string>
#define ICON_HEIGHT 64
#define ICON_HEIGHT 64
...
@@ -571,13 +573,7 @@ void SPrefsPanel::updateAudioOptions( int number)
...
@@ -571,13 +573,7 @@ void SPrefsPanel::updateAudioOptions( int number)
SPrefsPanel
::~
SPrefsPanel
()
SPrefsPanel
::~
SPrefsPanel
()
{
{
QList
<
ConfigControl
*>::
Iterator
conf_it
;
qDeleteAll
(
controls
);
controls
.
clear
();
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
)
void
SPrefsPanel
::
updateAudioVolume
(
int
volume
)
...
...
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