diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-13 13:54:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-13 13:54:00 +0100 |
commit | 08066065e316682da10249b4edcc19b7d5226e59 (patch) | |
tree | 56cd6e0d9a9e720ff0e301cd98d3e5781f7b55db /tools.h | |
parent | a9bd3ca0dc06c9a6439f5e484e137fc6aa50b4bc (diff) | |
download | vdr-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } \ } |