Revert "Fix memleak in mkv."
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Aug 2008 07:44:59 +0000 (00:44 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Aug 2008 07:44:59 +0000 (00:44 -0700)
This reverts commit 9b868a2f52eef2eb456831d296428aac98419bca.

modules/demux/mkv.cpp

index a20c8e4..994648d 100644 (file)
@@ -5005,9 +5005,7 @@ void matroska_segment_c::ParseAttachments( KaxAttachments *attachments )
 
         if( new_attachment )
         {
-            char* tmp = ToUTF8( UTFstring( file_name ) );
-            new_attachment->psz_file_name  = tmp;
-            free( tmp );
+            new_attachment->psz_file_name  = ToUTF8( UTFstring( file_name ) );
             new_attachment->psz_mime_type  = psz_mime_type;
             new_attachment->i_size         = img_data.GetSize();
             new_attachment->p_data         = malloc( img_data.GetSize() );