cap_dshow memory leak (Patch #2053)


Added by NoRG Zotto over 12 years ago. Updated over 12 years ago.


Status:Done Start date:2012-06-15
Priority:Low Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:highgui-camera
Target version:2.4.2
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

In modules\highgui\src\cap_dshow.cpp about line 658

1if(bufferSetup){
2    delete pixels;
3}

need to be changed to

1if(bufferSetup){
2    delete [] pixels;
3}

because 10 lines down

1pixels = new unsigned char[numBytes];

It's detected as memory leak in VS2010 with Intel XE inspector.


Associated revisions

Revision 16c94d64
Added by Andrey Kamaev over 12 years ago

Fixed #2053

Revision 1aaeea99
Added by Andrey Pavlenko about 11 years ago

Merge pull request #2053 from KonstantinMatskevich:ocl_bugfix_eqhist

History

Updated by Andrey Kamaev over 12 years ago

Thanks. Fixed in trunk.

  • Tracker changed from Bug to Patch
  • Status changed from Open to Done
  • Target version set to 2.4.2
  • Description changed from In modules\highgui\src\cap_dshow.cpp about line 658 if(bufferSetup)... to In modules\highgui\src\cap_dshow.cpp about line 658 <pre><code cla... More
  • Assignee changed from Alexander Reshetnikov to Andrey Kamaev

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-camera

Also available in: Atom PDF