summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-11-22 23:36:53 +0000
committerphintuka <phintuka>2010-11-22 23:36:53 +0000
commitdd38aabf2d800c0849e8851525b492914ed199a6 (patch)
treeaafd8f6bc24b9bb549c6a28af37d31ae8ec290df
parent20d2f398b0976020fd974443e03aa5b5aebccba7 (diff)
downloadxineliboutput-dd38aabf2d800c0849e8851525b492914ed199a6.tar.gz
xineliboutput-dd38aabf2d800c0849e8851525b492914ed199a6.tar.bz2
Fixed double free() when local frontend initialization fails
-rw-r--r--frontend_local.c4
1 files changed, 3 insertions, 1 deletions
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);