[vlc-devel] commit: taglib: simplify. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Nov 10 17:18:09 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Nov 10 13:55:27 2009 +0100| [e58e24c7a8861245d0f84685b82ce12e317b8fde] | committer: Rémi Duraffort
taglib: simplify.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e58e24c7a8861245d0f84685b82ce12e317b8fde
---
modules/meta_engine/taglib.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index 2d01ce9..59eda89 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -582,9 +582,8 @@ static int WriteMeta( vlc_object_t *p_this )
psz_meta = input_item_Get ## a( p_item ); \
if( psz_meta ) \
{ \
- String* psz_tmp = new String( psz_meta, String::UTF8 ); \
- p_tag->set##b( *psz_tmp ); \
- delete psz_tmp; \
+ String tmp( psz_meta, String::UTF8 ); \
+ p_tag->set##b( tmp ); \
} \
free( psz_meta );
More information about the vlc-devel
mailing list