ref: ce448a21d771fd2ecb8239821ad8f88875115d3b
parent: 88fded255aebe00098895f4f9d750370ecc7697e
author: volvet <qizh@cisco.com>
date: Wed Mar 12 12:21:33 EDT 2014
fix double free crash in encoder
--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -105,7 +105,7 @@
}
static int g_LevelSetting = 0;
-int ParseLayerConfig( CReadConfig cRdLayerCfg, const int iLayer, SEncParamExt& pSvcParam )
+int ParseLayerConfig( CReadConfig & cRdLayerCfg, const int iLayer, SEncParamExt& pSvcParam )
{
if (!cRdLayerCfg.ExistFile()) {
fprintf (stderr, "Unabled to open layer #%d configuration file: %s.\n", iLayer, cRdLayerCfg.GetFileName().c_str());