From c07a3a371ed4be7acece41ad06a81bf6814585f8 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 20 Nov 2004 11:34:04 +0100 Subject: Fixed a possible recursion in cControl::Shutdown() --- player.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'player.c') diff --git a/player.c b/player.c index c08e4230..2b306c0b 100644 --- a/player.c +++ b/player.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: player.c 1.7 2004/04/16 13:34:11 kls Exp $ + * $Id: player.c 1.8 2004/11/20 11:33:08 kls Exp $ */ #include "player.h" @@ -88,6 +88,7 @@ void cControl::Attach(void) void cControl::Shutdown(void) { - delete control; + cControl *c = control; // avoids recursions control = NULL; + delete c; } -- cgit v1.2.3