summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-08-06 14:08:33 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-08-06 14:08:33 +0200
commit3846ba7338115dc5456bac247d47d6610cd5f001 (patch)
treeefbac986e5ce6afa598c22590afb67ce3035ae86 /dvbapi.c
parent6c5a721a8ce8583fdaaa5e939d675c86845e3393 (diff)
downloadvdr-3846ba7338115dc5456bac247d47d6610cd5f001.tar.gz
vdr-3846ba7338115dc5456bac247d47d6610cd5f001.tar.bz2
Bugfix in closing window in DEBUG_OSD mode0.6.1
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 91fe3cf7..0562a4f5 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.21 2000/08/06 12:00:13 kls Exp $
+ * $Id: dvbapi.c 1.22 2000/08/06 14:06:14 kls Exp $
*/
#include "dvbapi.h"
@@ -1239,7 +1239,10 @@ void cDvbApi::Open(int w, int h)
void cDvbApi::Close(void)
{
#ifdef DEBUG_OSD
- delwin(window);
+ if (window) {
+ delwin(window);
+ window = 0;
+ }
#else
Cmd(OSD_Close);
#endif