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
95f14593
Commit
95f14593
authored
Aug 08, 2013
by
Rémi Duraffort
Committed by
Jean-Baptiste Kempf
Aug 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: fix memory leaks
parent
aa62e230
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/gui/qt4/components/complete_preferences.cpp
modules/gui/qt4/components/complete_preferences.cpp
+10
-1
No files found.
modules/gui/qt4/components/complete_preferences.cpp
View file @
95f14593
...
...
@@ -539,7 +539,10 @@ bool PrefsItemData::contains( const QString &text, Qt::CaseSensitivity cs )
}
if
(
name
.
contains
(
text
,
cs
)
||
head
.
contains
(
text
,
cs
)
||
help
.
contains
(
text
,
cs
))
{
module_config_free
(
p_config
);
return
true
;
}
if
(
p_item
)
do
{
...
...
@@ -555,8 +558,11 @@ bool PrefsItemData::contains( const QString &text, Qt::CaseSensitivity cs )
if
(
p_item
->
b_internal
)
continue
;
if
(
p_item
->
psz_text
&&
qtr
(
p_item
->
psz_text
).
contains
(
text
,
cs
)
)
{
module_config_free
(
p_config
);
return
true
;
}
}
while
(
!
(
(
this
->
i_type
==
TYPE_SUBCATEGORY
||
this
->
i_type
==
TYPE_CATSUBCAT
)
...
...
@@ -566,6 +572,7 @@ bool PrefsItemData::contains( const QString &text, Qt::CaseSensitivity cs )
&&
(
++
p_item
<
p_end
)
);
module_config_free
(
p_config
);
return
false
;
}
...
...
@@ -592,7 +599,7 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
}
unsigned
confsize
;
module_config_t
*
const
p_config
=
module_config_get
(
p_module
,
&
confsize
),
module_config_t
*
const
p_config
=
module_config_get
(
p_module
,
&
confsize
),
*
p_item
=
p_config
,
*
p_end
=
p_config
+
confsize
;
...
...
@@ -723,6 +730,8 @@ AdvPrefsPanel::AdvPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
scroller
->
setWidgetResizable
(
true
);
global_layout
->
addWidget
(
scroller
);
setLayout
(
global_layout
);
module_config_free
(
p_config
);
}
void
AdvPrefsPanel
::
apply
()
...
...
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