From a023ac527d0589103e001747e4f59609ec77b0ce Mon Sep 17 00:00:00 2001 From: anbr Date: Sun, 11 Mar 2012 09:17:35 +0100 Subject: Fix bug: close crash without open device. --- vfd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vfd.c b/vfd.c index 6380fd4..c77fe69 100644 --- a/vfd.c +++ b/vfd.c @@ -266,8 +266,10 @@ const char *cVFDQueue::usberror(int ret) const cVFD::cVFD() { - this->pFont = NULL; - this->lastIconState = 0; + pFont = NULL; + lastIconState = 0; + framebuf = NULL; + backingstore = NULL; } cVFD::~cVFD() { -- cgit v1.2.3