We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50555f0 + b8f6a59 commit 1a889faCopy full SHA for 1a889fa
libvisual-plugins/plugins/actor/corona/corona.cpp
@@ -109,7 +109,7 @@ bool Corona::setUpSurface(int width, int height) {
109
m_real_image = (unsigned char *)calloc(1,width*height);
110
if (m_real_image == 0) return false;
111
m_image = m_real_image + m_width * (m_real_height - m_height);
112
- m_reflArray = (int*)malloc((m_real_height - m_height) + m_width);
+ m_reflArray = (int*)malloc((m_real_height - m_height) * sizeof(*m_reflArray));
113
114
// Allocate the delta-field memory, and initialise it
115
m_deltafield = (unsigned char**)malloc(m_width * m_height * sizeof(unsigned char*));
0 commit comments