X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=chan_lcr.c;h=332cc7fbe2ab54d28dc066eebd460a7e10debebd;hp=302716e6f402a8befc5bf872f0f8bed6e0f501a0;hb=680147f78cfba39d1b94f8f2db332e4f271cd077;hpb=fcc787b14dd8700d072a038b948bf6bf6fed3d58 diff --git a/chan_lcr.c b/chan_lcr.c index 302716e..332cc7f 100644 --- a/chan_lcr.c +++ b/chan_lcr.c @@ -2750,7 +2750,7 @@ static int lcr_write(struct ast_channel *ast, struct ast_frame *fr) #else call = ast_channel_tech_pvt(ast); #endif - if (!call) { + if (!call || !call->ref) { ast_mutex_unlock(&chan_lock); if (f != fr) { ast_frfree(f);