From dd38aabf2d800c0849e8851525b492914ed199a6 Mon Sep 17 00:00:00 2001 From: phintuka Date: Mon, 22 Nov 2010 23:36:53 +0000 Subject: Fixed double free() when local frontend initialization fails --- frontend_local.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend_local.c b/frontend_local.c index a3ed60fc..5cf672ad 100644 --- a/frontend_local.c +++ b/frontend_local.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend_local.c,v 1.50 2010-11-17 14:05:34 phintuka Exp $ + * $Id: frontend_local.c,v 1.51 2010-11-22 23:36:53 phintuka Exp $ * */ @@ -448,6 +448,8 @@ void cXinelibLocal::Action(void) } if(curr_fe) { + LOCK_FE_WR; + fe = NULL; curr_fe->xine_exit(fe); curr_fe->fe_display_close(curr_fe); curr_fe->fe_free(curr_fe); -- cgit v1.2.3