Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#5 Memory Leak

open
nobody
None
5
2008-08-03
2008-08-03
Anonymous
No

In main.cpp, line 63, an instance of cAafEdl is created like this:

cAafEdl::Ptr data = new cAafEdl(fps);

At no point delete is called on the object since cAafEdl::Ptr is not a smart pointer type, but a typedef for cAafEdl* (declared in line 91 of the header).

You should either use a std::auto_ptr< cAafEdl > instead, or call delete on it before returning from main.

Discussion