[Freeswitch-svn] [commit] r2584 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Fri Sep 8 15:00:41 EDT 2006
Author: anthm
Date: Fri Sep 8 15:00:40 2006
New Revision: 2584
Modified:
freeswitch/trunk/src/switch_core.c
Log:
add dynamic buffers
Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c (original)
+++ freeswitch/trunk/src/switch_core.c Fri Sep 8 15:00:40 2006
@@ -1559,11 +1559,14 @@
{
/* sweep theese under the rug, they wont be leaked they will be reclaimed
when the session ends.
- */
- session->raw_write_buffer = NULL;
- session->raw_read_buffer = NULL;
+ */
+
session->read_resampler = NULL;
session->write_resampler = NULL;
+
+ /* wipe theese, they will be recreated if need be */
+ switch_buffer_destroy(&(*session)->raw_read_buffer);
+ switch_buffer_destroy(&(*session)->raw_write_buffer);
}
SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_session_t *session, switch_frame_t *frame,
More information about the Freeswitch-svn
mailing list