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
05d386b4
Commit
05d386b4
authored
Apr 03, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: fix memleak.
parent
6e484b0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+6
-5
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
05d386b4
...
...
@@ -870,7 +870,7 @@ void Equalizer::clean()
/* Write down initial values */
void
Equalizer
::
updateUIFromCore
()
{
char
*
psz_af
;
char
*
psz_af
,
*
psz_pres
;
float
f_preamp
;
int
i_preset
;
...
...
@@ -878,21 +878,21 @@ void Equalizer::updateUIFromCore()
if
(
p_aout
)
{
psz_af
=
var_GetNonEmptyString
(
p_aout
,
"audio-filter"
);
psz_pres
=
var_GetString
(
p_aout
,
"equalizer-preset"
);
if
(
var_GetBool
(
p_aout
,
"equalizer-2pass"
)
)
ui
.
eq2PassCheck
->
setChecked
(
true
);
f_preamp
=
var_GetFloat
(
p_aout
,
"equalizer-preamp"
);
i_preset
=
presetsComboBox
->
findData
(
QVariant
(
var_GetString
(
p_aout
,
"equalizer-preset"
)
)
);
i_preset
=
presetsComboBox
->
findData
(
QVariant
(
psz_pres
)
);
vlc_object_release
(
p_aout
);
}
else
{
psz_af
=
config_GetPsz
(
p_intf
,
"audio-filter"
);
psz_pres
=
config_GetPsz
(
p_intf
,
"equalizer-preset"
);
if
(
config_GetInt
(
p_intf
,
"equalizer-2pass"
)
)
ui
.
eq2PassCheck
->
setChecked
(
true
);
f_preamp
=
config_GetFloat
(
p_intf
,
"equalizer-preamp"
);
i_preset
=
presetsComboBox
->
findData
(
QVariant
(
config_GetPsz
(
p_intf
,
"equalizer-preset"
)
)
);
i_preset
=
presetsComboBox
->
findData
(
QVariant
(
psz_pres
)
);
}
if
(
psz_af
&&
strstr
(
psz_af
,
"equalizer"
)
!=
NULL
)
ui
.
enableCheck
->
setChecked
(
true
);
...
...
@@ -901,6 +901,7 @@ void Equalizer::updateUIFromCore()
presetsComboBox
->
setCurrentIndex
(
i_preset
);
free
(
psz_af
);
free
(
psz_pres
);
}
/* Functin called when enableButton is toggled */
...
...
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