diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-07-20 15:26:13 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-07-20 15:26:13 +0200 |
commit | 214c12289f58c90369fce58af20ae50a22fda34d (patch) | |
tree | d1cc4563df10519e666cf7613738bc0c5809683d /player.c | |
parent | a8eaa2538c7bad811e41797508092ebbeca8da09 (diff) | |
download | vdr-214c12289f58c90369fce58af20ae50a22fda34d.tar.gz vdr-214c12289f58c90369fce58af20ae50a22fda34d.tar.bz2 |
Improved cControl::Launch() to keep 'control' from pointing to uninitialized memory
Diffstat (limited to 'player.c')
-rw-r--r-- | player.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: player.c 1.11 2006/01/06 11:30:07 kls Exp $ + * $Id: player.c 1.12 2007/07/20 15:25:24 kls Exp $ */ #include "player.h" @@ -69,8 +69,9 @@ cControl *cControl::Control(void) void cControl::Launch(cControl *Control) { cMutexLock MutexLock(&mutex); - delete control; + cControl *c = control; // keeps control from pointing to uninitialized memory control = Control; + delete c; } void cControl::Attach(void) |