summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-25 18:22:46 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-25 18:22:46 +0100
commitac60bd7141b141ca1b4ee11b2471ccb24688a068 (patch)
tree96e86c273dc295d96d25072b141ed71e4f1ac93d /device.c
parentc7211d13bee617e8126e627d198121b9fbe78adf (diff)
downloadvdr-ac60bd7141b141ca1b4ee11b2471ccb24688a068.tar.gz
vdr-ac60bd7141b141ca1b4ee11b2471ccb24688a068.tar.bz2
Now setting primaryDevice = NULL before deleting the devices in cDevice::Shutdown()
Diffstat (limited to 'device.c')
-rw-r--r--device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/device.c b/device.c
index 9214eead..723d23df 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 1.78 2005/01/23 14:15:00 kls Exp $
+ * $Id: device.c 1.79 2005/01/25 18:19:30 kls Exp $
*/
#include "device.h"
@@ -281,11 +281,11 @@ cDevice *cDevice::GetDevice(const cChannel *Channel, int Priority, bool *NeedsDe
void cDevice::Shutdown(void)
{
+ primaryDevice = NULL;
for (int i = 0; i < numDevices; i++) {
delete device[i];
device[i] = NULL;
}
- primaryDevice = NULL;
}
bool cDevice::GrabImage(const char *FileName, bool Jpeg, int Quality, int SizeX, int SizeY)