mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
Windows build tweaks.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2352 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -459,8 +459,7 @@ static char *lame(char *in)
|
||||
static int do_describe(struct private_object *tech_pvt, int force)
|
||||
{
|
||||
ldl_payload_t payloads[5];
|
||||
switch_channel_t *channel = switch_core_session_get_channel(tech_pvt->session);
|
||||
assert(channel != NULL);
|
||||
assert(switch_core_session_get_channel(tech_pvt->session) != NULL);
|
||||
|
||||
if (switch_test_flag(tech_pvt, TFLAG_DO_DESC)) {
|
||||
return 1;
|
||||
|
||||
@@ -1561,10 +1561,11 @@ static void fileio_destroy(JSContext *cx, JSObject *obj)
|
||||
struct fileio_obj *fio = JS_GetPrivate(cx, obj);
|
||||
|
||||
if (fio) {
|
||||
if (fio->fd) {
|
||||
switch_memory_pool_t *pool;
|
||||
if (fio->fd) {
|
||||
switch_file_close(fio->fd);
|
||||
}
|
||||
switch_memory_pool_t *pool = fio->pool;
|
||||
pool = fio->pool;
|
||||
switch_core_destroy_memory_pool(&pool);
|
||||
pool = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user