summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-04-26 10:28:39 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-04-26 10:28:39 +0200
commitb5ddaedfb3c12bcafe08b6b61268de2e286fb8ea (patch)
treee5753dab5875ba4aadbfc44414ef6e6aa98a9a11 /device.c
parentfb3e5ca4ee9590219e9e2c4d0cf5ea232a78bab1 (diff)
downloadvdr-b5ddaedfb3c12bcafe08b6b61268de2e286fb8ea.tar.gz
vdr-b5ddaedfb3c12bcafe08b6b61268de2e286fb8ea.tar.bz2
Fixed cDevice::StillPicture(), making sure it doesn't call the derived class's function if no buffer has been allocated
Diffstat (limited to 'device.c')
-rw-r--r--device.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/device.c b/device.c
index cb5cd830..9c382a11 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 2.59 2012/04/04 09:48:00 kls Exp $
+ * $Id: device.c 2.60 2012/04/26 09:40:36 kls Exp $
*/
#include "device.h"
@@ -1181,8 +1181,10 @@ void cDevice::StillPicture(const uchar *Data, int Length)
return;
}
}
- StillPicture(buf, Size);
- free(buf);
+ if (buf) {
+ StillPicture(buf, Size);
+ free(buf);
+ }
}
}