cc_draw.cpp: remove consequently all possible pixbuf contents

This should enusre a clean content for all fbdata.pixbuf parts.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 82c91c00f0
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-12-08 (Sat, 08 Dec 2018)



------------------
This commit was generated by Migit
This commit is contained in:
2018-12-08 23:15:13 +01:00
committed by vanhofen
parent 0a774f79ac
commit b39e939b9a

View File

@@ -400,12 +400,18 @@ bool CCDraw::clearFbGradientData()
bool CCDraw::clearScreenBuffer()
{
bool ret = false;
if (clearSavedScreen())
ret = true;
if (clearPaintCache())
ret = true;
for(size_t i =0; i< v_fbdata.size() ;i++) {
if (v_fbdata[i].pixbuf){
dprintf(DEBUG_INFO, "\033[33m[CCDraw]\t[%s - %d], cleanup pixbuf...\033[0m\n", __func__, __LINE__);
delete[] v_fbdata[i].pixbuf;
v_fbdata[i].pixbuf = NULL;
ret = true;
}
}
if (clearFbGradientData())
ret = true;
firstPaint = true;
return ret;
}