trying to solve memory leaks

This commit is contained in:
Marty Kraimer
2013-06-18 10:51:14 -04:00
parent 4b5ab2c913
commit 81cde9dd6e
2 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,7 @@ typedef std::multiset<MonitorLocalPtr> MonitorLocalList;
class ChannelLocalTrace {
public:
ChannelLocalTrace()
: channelLocalTraceLevel(0)
: channelLocalTraceLevel(3)
{}
~ChannelLocalTrace(){}
void setLevel(int level)

View File

@ -121,7 +121,10 @@ int main(int argc,char *argv[])
if(str.compare("exit")==0) break;
}
channelProvider->destroy();
channelProvider.reset();
ctx->destroy();
ctx.reset();
return 0;
}