summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2016-12-13 13:54:00 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2016-12-13 13:54:00 +0100
commit08066065e316682da10249b4edcc19b7d5226e59 (patch)
tree56cd6e0d9a9e720ff0e301cd98d3e5781f7b55db /tools.h
parenta9bd3ca0dc06c9a6439f5e484e137fc6aa50b4bc (diff)
downloadvdr-08066065e316682da10249b4edcc19b7d5226e59.tar.gz
vdr-08066065e316682da10249b4edcc19b7d5226e59.tar.bz2
Fixed a crash when moving a recording to a folder on a different volume
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h4
1 files changed, 2 insertions, 2 deletions
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<c##Class *>(list); } \
}