Commit 0dbe1bd3 authored by Naohiro KORIYAMA's avatar Naohiro KORIYAMA Committed by Jean-Baptiste Kempf

mkv: fix memleak

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7b2d11f2
...@@ -1005,7 +1005,10 @@ void matroska_segment_c::ParseAttachments( KaxAttachments *attachments ) ...@@ -1005,7 +1005,10 @@ void matroska_segment_c::ParseAttachments( KaxAttachments *attachments )
while( attachedFile && ( attachedFile->GetSize() > 0 ) ) while( attachedFile && ( attachedFile->GetSize() > 0 ) )
{ {
KaxFileData &img_data = GetChild<KaxFileData>( *attachedFile ); KaxFileData &img_data = GetChild<KaxFileData>( *attachedFile );
attachment_c *new_attachment = new attachment_c( ToUTF8( UTFstring( GetChild<KaxFileName>( *attachedFile ) ) ), char *psz_tmp_utf8 = ToUTF8( UTFstring( GetChild<KaxFileName>( *attachedFile ) ) );
std::string attached_filename(psz_tmp_utf8);
free(psz_tmp_utf8);
attachment_c *new_attachment = new attachment_c( attached_filename,
GetChild<KaxMimeType>( *attachedFile ), GetChild<KaxMimeType>( *attachedFile ),
img_data.GetSize() ); img_data.GetSize() );
......
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