Commit cb545aff authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

"delete[]" arrays rather than "delete" them

parent 3dfd3d0e
......@@ -166,7 +166,7 @@ bool videoVFW :: openDevice(gem::Properties&props)
m_width, m_height,
static_cast<int>(videoFormat->bmiHeader.biBitCount));
delete videoFormat;
delete[]videoFormat;
m_image.image.xsize = m_width;
m_image.image.ysize = m_height;
......
......@@ -46,7 +46,7 @@ pix_blur :: pix_blur(void) :
/////////////////////////////////////////////////////////
pix_blur :: ~pix_blur(void)
{
delete saved;
delete[]saved;
}
/////////////////////////////////////////////////////////
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment