git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1497a8a
)
Fix potential memleak (CID 198)
author
Rémi Duraffort
<ivoire@videolan.org>
Sun, 5 Oct 2008 13:37:09 +0000
(15:37 +0200)
committer
Rémi Duraffort
<ivoire@videolan.org>
Sun, 5 Oct 2008 13:37:09 +0000
(15:37 +0200)
src/input/meta.c
patch
|
blob
|
history
diff --git
a/src/input/meta.c
b/src/input/meta.c
index
aa716f0
..
b8ab5ac
100644
(file)
--- a/
src/input/meta.c
+++ b/
src/input/meta.c
@@
-506,7
+506,10
@@
void input_ExtractAttachmentAndCacheArt( input_thread_t *p_input )
psz_title = p_item->psz_name;
if( (!psz_artist || !psz_album ) && !psz_title )
psz_title = p_item->psz_name;
if( (!psz_artist || !psz_album ) && !psz_title )
+ {
+ free( psz_type );
return;
return;
+ }
ArtCacheGetDirPath( p_input, psz_filename, psz_title, psz_artist, psz_album );
ArtCacheCreateDir( psz_filename );
ArtCacheGetDirPath( p_input, psz_filename, psz_title, psz_artist, psz_album );
ArtCacheCreateDir( psz_filename );