From 08066065e316682da10249b4edcc19b7d5226e59 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 13 Dec 2016 13:54:00 +0100 Subject: Fixed a crash when moving a recording to a folder on a different volume --- tools.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools.h') diff --git a/tools.h b/tools.h index 1563db92..f2ba3157 100644 --- a/tools.h +++ b/tools.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 4.3 2015/09/06 10:45:54 kls Exp $ + * $Id: tools.h 4.4 2016/12/13 12:13:46 kls Exp $ */ #ifndef __TOOLS_H @@ -609,7 +609,7 @@ public: \ else \ list = c##Class::Get##Name##Read(stateKey); \ } \ - ~c##Name##Lock() { stateKey.Remove(); } \ + ~c##Name##Lock() { if (list) stateKey.Remove(); } \ const c##Class *Name(void) const { return list; } \ c##Class *Name(void) { return const_cast(list); } \ } -- cgit v1.2.3