#7 More leak fixes.

open
nobody
None
5
2008-04-22
2008-04-22
Vladimir
No

In ImplAAFTypeDef.cpp inside MergeTo, a ReleaseReference() call has been added to pDstTypeDef.

In OMOStream.h and OMOStream.cpp a virtual destructor for OMOStream was defined.

In CAAFJPEGCodec.cpp inside CreateLegacyPropDefs, for each if an else case has been added which calls Release() on pPropertyDef.

In ComModTestAAF.cpp, at the very end of the file a for loop has been added to clean up wargv.

In CAAFSourceReferenceTest CreateAAFFile, a call to Release has been added to pSrcRef2.

In OMMS_SSStoredObjectFactory.cppm inside createFile iLockBytes->Release(); added.

In ImplAAFHeader.cpp, inside AddIdentificationObject added a call to Release() to identObj.

In CAAFTypeDefStreamTest.cpp a call to Release() added.

In ImplAAFModule.cpp, inside ImplAAFCreateRawStorageCached pCachePageAllocator->Release();

In ImplAAFTaggedValueUtil.cpp, release the newly created tagged value in the case of exception.

In ImplAAFComponent.cpp, inside the ImplAAFComponent destructor, free _attributes and user comments.

In ImplAAFMob.cpp, inside the ImplAAFMob destructor, free _attributes. Inside ImplAAFMob::Copy remove reference count-up on newMob as it is already reference counted. The same goes for pNewMob inside ImplAAFMob::CloneExternal.

Discussion

  • Vladimir
    Vladimir
    2008-04-22

    The patch file.

     
    Attachments