Properly release the file resources at the end of a T.38 fax transfer.
Make sure the spandsp API supports t38_terminal_release(). git-svn-id: http://yate.null.ro/svn/yate/trunk@5933 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
d1c48eec1a
commit
5a828d1aa5
|
@ -1144,6 +1144,7 @@ t30_set_tx_ident(fax_get_t30_state(&fax_state),"xyz");
|
|||
fax_set_transmit_on_idle(&fax_state,1);
|
||||
t38_terminal_init(&t38_t_state,TRUE,NULL,NULL);
|
||||
t38_gateway_init(&t38_g_state,NULL,NULL);
|
||||
t38_terminal_release(&t38_t_state);
|
||||
],
|
||||
HAVE_SPANDSP="yes"
|
||||
)
|
||||
|
@ -1170,6 +1171,7 @@ t30_set_tx_ident(fax_get_t30_state(&fax_state),"xyz");
|
|||
fax_set_transmit_on_idle(&fax_state,1);
|
||||
t38_terminal_init(&t38_t_state,TRUE,NULL,NULL);
|
||||
t38_gateway_init(&t38_g_state,NULL,NULL);
|
||||
t38_terminal_release(&t38_t_state);
|
||||
],
|
||||
HAVE_SPANDSP="yes"
|
||||
)
|
||||
|
@ -1197,6 +1199,7 @@ t30_set_tx_ident(fax_get_t30_state(&fax_state),"xyz");
|
|||
fax_set_transmit_on_idle(&fax_state,1);
|
||||
t38_terminal_init(&t38_t_state,TRUE,NULL,NULL);
|
||||
t38_gateway_init(&t38_g_state,NULL,NULL);
|
||||
t38_terminal_release(&t38_t_state);
|
||||
],
|
||||
HAVE_SPANDSP="yes"
|
||||
)
|
||||
|
|
|
@ -538,6 +538,7 @@ T38Terminal::T38Terminal(const char *file, const char *ident, bool sender, bool
|
|||
T38Terminal::~T38Terminal()
|
||||
{
|
||||
Debug(this,DebugAll,"T38Terminal::~T38Terminal() [%p]",this);
|
||||
t38_terminal_release(&m_t38);
|
||||
}
|
||||
|
||||
// Run the terminal
|
||||
|
|
Loading…
Reference in New Issue