Commit 9e11ce64 authored by basos g's avatar basos g Committed by Rémi Duraffort

CLEAN QT4 fix some memory leaks. Reorgazine code

(hacked a bit)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent e35dcda6
...@@ -1294,7 +1294,8 @@ void CaptureOpenPanel::advancedDialog() ...@@ -1294,7 +1294,8 @@ void CaptureOpenPanel::advancedDialog()
module_config_t *p_item = p_config + n; module_config_t *p_item = p_config + n;
ConfigControl *config = ConfigControl::createControl( ConfigControl *config = ConfigControl::createControl(
VLC_OBJECT( p_intf ), p_item, advFrame, gLayout, n ); VLC_OBJECT( p_intf ), p_item, advFrame, gLayout, n );
controls.append( config ); if ( config )
controls.append( config );
} }
/* Button stuffs */ /* Button stuffs */
...@@ -1317,11 +1318,6 @@ void CaptureOpenPanel::advancedDialog() ...@@ -1317,11 +1318,6 @@ void CaptureOpenPanel::advancedDialog()
for( int i = 0; i < controls.size(); i++ ) for( int i = 0; i < controls.size(); i++ )
{ {
ConfigControl *control = controls[i]; ConfigControl *control = controls[i];
if( !control )
{
msg_Dbg( p_intf, "This shouldn't happen, please report" );
continue;
}
tempMRL += (i ? " :" : ":"); tempMRL += (i ? " :" : ":");
...@@ -1351,6 +1347,11 @@ void CaptureOpenPanel::advancedDialog() ...@@ -1351,6 +1347,11 @@ void CaptureOpenPanel::advancedDialog()
updateMRL(); updateMRL();
msg_Dbg( p_intf, "%s", qtu( advMRL ) ); msg_Dbg( p_intf, "%s", qtu( advMRL ) );
} }
for( int i = 0; i < controls.size(); i++ )
{
ConfigControl *control = controls[i];
delete control ;
}
delete adv; delete adv;
module_config_free( p_config ); module_config_free( p_config );
module_release (p_module); module_release (p_module);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment