mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
pictureviewer.cpp fix possible memleak
Origin commit data
------------------
Commit: 93f3007be1
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-02-16 (Tue, 16 Feb 2016)
This commit is contained in:
@@ -446,6 +446,7 @@ void CPictureViewer::showBusy (int sx, int sy, int width, char r, char g, char b
|
|||||||
m_busy_buffer = (unsigned char *) malloc (width * width * cpp);
|
m_busy_buffer = (unsigned char *) malloc (width * width * cpp);
|
||||||
if (m_busy_buffer == NULL) {
|
if (m_busy_buffer == NULL) {
|
||||||
dprintf(DEBUG_NORMAL, "[CPictureViewer] [%s - %d] Error: malloc\n", __func__, __LINE__);
|
dprintf(DEBUG_NORMAL, "[CPictureViewer] [%s - %d] Error: malloc\n", __func__, __LINE__);
|
||||||
|
cs_free_uncached (fb_buffer);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
busy_buffer_wrk = m_busy_buffer;
|
busy_buffer_wrk = m_busy_buffer;
|
||||||
|
Reference in New Issue
Block a user