summaryrefslogtreecommitdiff
path: root/osd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-02-13 12:55:06 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-02-13 12:55:06 +0100
commit8ef71dbbdf87b836c915b1230a66e230408e2868 (patch)
treea58d13e92310686eba838c6e4a0ee8a72a3deb4e /osd.c
parente5295be30a96acfbfc7919b938965ac645c05c96 (diff)
downloadvdr-8ef71dbbdf87b836c915b1230a66e230408e2868.tar.gz
vdr-8ef71dbbdf87b836c915b1230a66e230408e2868.tar.bz2
Made cOsd::DestroyPixmap() "NULL proof"
Diffstat (limited to 'osd.c')
-rw-r--r--osd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/osd.c b/osd.c
index b9fdefd9..73db4281 100644
--- a/osd.c
+++ b/osd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.c 2.35 2013/02/08 10:16:47 kls Exp $
+ * $Id: osd.c 2.36 2013/02/13 12:52:07 kls Exp $
*/
#include "osd.h"
@@ -1699,7 +1699,7 @@ cPixmap *cOsd::CreatePixmap(int Layer, const cRect &ViewPort, const cRect &DrawP
void cOsd::DestroyPixmap(cPixmap *Pixmap)
{
- if (isTrueColor) {
+ if (Pixmap) {
LOCK_PIXMAPS;
for (int i = 1; i < pixmaps.Size(); i++) { // begin at 1 - don't let the background pixmap be destroyed!
if (pixmaps[i] == Pixmap) {