Open Black Hole Git
Vu+ Newbie
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>
Author: Athanasios Oikonomou
Continue reading...
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>
Author: Athanasios Oikonomou
Continue reading...