]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix memory leaks, tanks to Sharath from packetizer forum.
authorGeorgiewskiy Yuriy <bottleman@icf.org.ru>
Sat, 26 Apr 2014 00:49:35 +0000 (04:49 +0400)
committerGeorgiewskiy Yuriy <bottleman@icf.org.ru>
Sat, 26 Apr 2014 00:49:35 +0000 (04:49 +0400)
src/mod/endpoints/mod_h323/changes.txt
src/mod/endpoints/mod_h323/mod_h323.cpp

index 93a75e8b0f7a63cf07e04a4c49eedd612e8573c2..f9393a7a13992eefc20e2fa42e2cb141b46ff96e 100644 (file)
@@ -1,3 +1,4 @@
+fix memory leaks, thanks Sharath from packetizer forum.
 fix stale calls then fax send/recv in some circumstance 
 remove SWITCH_RTP_FLAG_AUTO_CNG - works incorrectly.
 moves the switch_rtp_request_port() call from the contructor to FSH323Connection::CreateRealTimeLogicalChannel() - fix 
index adaf38deb1e8e28057ed14e502a14dc2418fcdff..a44de1407f1e9bee1303481aaf28fef5647979ad 100644 (file)
@@ -189,6 +189,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_h323_shutdown)
        switch_safe_free(mod_h323_globals.context);
        switch_safe_free(mod_h323_globals.dialplan);
        switch_safe_free(mod_h323_globals.codec_string);
+       switch_safe_free(mod_h323_globals.rtp_timer_name);
 
        delete h323_process;
        h323_process = NULL;
@@ -768,6 +769,7 @@ FSH323Connection::~FSH323Connection()
        tech_pvt->active_connection = false;
 //     switch_mutex_unlock(tech_pvt->h323_mutex);
 //     switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"------------->h323_mutex_unlock\n");
+       switch_safe_free(tech_pvt->token);
 }      
 
 void FSH323Connection::AttachSignalChannel(const PString & token,