mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
widget: reset some object vars to NULL, only for sure
Origin commit data
------------------
Commit: 1d7ce79142
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-01-05 (Sun, 05 Jan 2020)
This commit is contained in:
@@ -394,6 +394,7 @@ int CStringInput::exec( CMenuTarget* parent, const std::string & )
|
||||
|
||||
if (pixBuf)
|
||||
delete[] pixBuf;
|
||||
pixBuf = NULL;
|
||||
if (!parent || force_saveScreen) {
|
||||
pixBuf = new fb_pixel_t[(width + OFFSET_SHADOW) * (height + OFFSET_SHADOW)];
|
||||
if (pixBuf)
|
||||
@@ -916,6 +917,7 @@ int CPLPINInput::exec( CMenuTarget* parent, const std::string & )
|
||||
{
|
||||
frameBuffer->RestoreScreen(x - borderwidth, y- borderwidth, width+ 2* borderwidth, height+ 2* borderwidth, pixbuf);
|
||||
delete[] pixbuf;//Mismatching allocation and deallocation: pixbuf
|
||||
pixBuf = NULL;
|
||||
}
|
||||
|
||||
return ( res );
|
||||
|
Reference in New Issue
Block a user