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://voip.null.ro/svn/yate@5933 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2015-01-29 10:23:36 +00:00
parent e05fb3e372
commit f30831814b
2 changed files with 4 additions and 0 deletions

View File

@ -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"
)

View File

@ -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