Revision: 1244
http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1244&view=rev
Author: sbalea
Date: 2007-10-30 11:33:01 -0700 (Tue, 30 Oct 2007)
Log Message:
-----------
Merge from trunk: fix memory leaks in px_win_wmme.c
Modified Paths:
--------------
branches/2.0/lib/portmixer/px_win_wmme/px_win_wmme.c
Modified: branches/2.0/lib/portmixer/px_win_wmme/px_win_wmme.c
===================================================================
--- branches/2.0/lib/portmixer/px_win_wmme/px_win_wmme.c 2007-10-30 18:32:07 UTC (rev 1243)
+++ branches/2.0/lib/portmixer/px_win_wmme/px_win_wmme.c 2007-10-30 18:33:01 UTC (rev 1244)
@@ -671,7 +671,11 @@
) ;
if ( mmr != MMSYSERR_NOERROR )
+ {
+ free(mixerControl);
+
return mmr ;
+ }
//
// find boost control
@@ -701,7 +705,11 @@
}
if ( boost_id == -1 )
+ {
+ free(mixerControl);
+
return MMSYSERR_ERROR ;
+ }
//
// get control details
@@ -724,7 +732,11 @@
) ;
if ( mmr != MMSYSERR_NOERROR )
+ {
+ free(mixerControl);
+
return mmr ;
+ }
//
// update value
@@ -742,6 +754,8 @@
MIXER_SETCONTROLDETAILSF_VALUE
) ;
+ free(mixerControl);
+
if ( mmr != MMSYSERR_NOERROR )
return mmr ;
@@ -795,7 +809,11 @@
) ;
if ( mmr != MMSYSERR_NOERROR )
+ {
+ free(mixerControl);
+
return -1 ;
+ }
//
// find boost control
@@ -825,7 +843,11 @@
}
if ( boost_id == -1 )
+ {
+ free(mixerControl);
+
return -1 ;
+ }
//
// get control details
@@ -847,6 +869,8 @@
MIXER_GETCONTROLDETAILSF_VALUE
) ;
+ free(mixerControl);
+
if ( mmr != MMSYSERR_NOERROR )
return -1 ;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|