mmserv/voipaudioservices/VoIPServer/src/VoIPUplinkThread.cpp
changeset 53 eabc8c503852
parent 14 80975da52420
--- a/mmserv/voipaudioservices/VoIPServer/src/VoIPUplinkThread.cpp	Fri Sep 03 19:34:12 2010 -0500
+++ b/mmserv/voipaudioservices/VoIPServer/src/VoIPUplinkThread.cpp	Tue Sep 21 11:38:43 2010 -0500
@@ -44,6 +44,8 @@
     TRACE_PRN_FN_ENT;
 
     Stop();
+    iBitrates.Close();
+    iShared.iCodecSettings.iArrBitrates = NULL;
     delete iSpeechEncoderConfig;
     delete iG711EncoderIntfc;
     delete iG729EncoderIntfc;
@@ -526,10 +528,10 @@
 
     if (iSpeechEncoderConfig)
         {
-        RArray<TUint> bitrates;
-        err = iSpeechEncoderConfig->GetSupportedBitrates(bitrates);
+        iBitrates.Reset();
+        err = iSpeechEncoderConfig->GetSupportedBitrates(iBitrates);
         iShared.iMutex.Wait();
-        iShared.iCodecSettings.iArrBitrates = bitrates;
+        iShared.iCodecSettings.iArrBitrates = &iBitrates;
         iShared.iMutex.Signal();
         }