Partially revert memory leak fix(ed upstream).

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2020-07-05 14:51:51 +01:00
parent df01fafd06
commit 16d17a3ab3
3 changed files with 0 additions and 10 deletions

View file

@ -732,13 +732,6 @@ void VideoInitializeOriginal(baseColors_t pBaseNtscColors)
PalIndex2RGB[HGR_VIOLET] = PalIndex2RGB[MAGENTA];
}
void VideoDestroyOriginal()
{
delete [] g_pSourcePixels;
g_pSourcePixels = NULL;
}
//===========================================================================
static UINT g_rgbFlags = 0;

View file

@ -7,8 +7,6 @@ void UpdateDLoResCell(int x, int y, uint16_t addr, bgra_t *pVideoAddress);
const UINT kNumBaseColors = 16;
typedef bgra_t (*baseColors_t)[kNumBaseColors];
void VideoInitializeOriginal(baseColors_t pBaseNtscColors);
void VideoDestroyOriginal();
void RGB_SetVideoMode(WORD address);
bool RGB_Is140Mode(void);

View file

@ -133,7 +133,6 @@ void VideoDestroy () {
g_pFramebufferinfo = NULL;
free(g_pFramebufferbits);
g_pFramebufferbits = NULL;
VideoDestroyOriginal();
}