From 5a10020e32372941ee421350e67edc3c68dcf1b4 Mon Sep 17 00:00:00 2001 From: anbr Date: Tue, 11 Dec 2012 19:27:31 +0100 Subject: Fix bug: close crash without open device. --- imon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imon.c b/imon.c index 42b8a0c..f9e5d78 100644 --- a/imon.c +++ b/imon.c @@ -116,8 +116,10 @@ static const uint64_t ICON_SPKR_FL = ((uint64_t) 1 << 0); ciMonLCD::ciMonLCD() { this->imon_fd = -1; - this->pFont = NULL; + this->framebuf = NULL; + this->backingstore = NULL; this->last_cd_state = 0; + this->pFont = NULL; } ciMonLCD::~ciMonLCD() { -- cgit v1.2.3