DBoxLCD: Initialize _buffer to prevent segfault

Status
Not open for further replies.
DBoxLCD: Initialize _buffer to prevent segfault

Since commit ac977040b7c9fa3474272a1568e5f00b4963c1eb
when the box has no LCD on destructor we are trying
to free non initialized memory causing segfault.

Initialize _buffer to NULL to prevent this from happen.

(cherry picked from commit 0c49846d922b672d94530a734b61b37ba40da213)
Signed-off-by: Erik Slagter <erik@openpli.org>

  • [DH] lib/gdi/lcd.cpp
Author: Athanasios Oikonomou

Continue reading...
 
Status
Not open for further replies.
Back
Top