Skip to content

IplImage* has memory leak, how to release memory ? #122

Answered by pattacini
pattacini asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Tariq-Abuhashim

cvReleaseImage should actually free up the memory, if I'm not mistaken.
However, I'd warmly recommend you to rely on the C++ layer of OpenCV, thus replacing the use of *IplImage with Mat.

Therefore, look up the imread method, which should basically do what cvLoadImage is used to.

Replies: 4 comments

Comment options

pattacini
Jun 24, 2016
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by pattacini
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #122 on December 08, 2020 16:06.