$OpenBSD: patch-src_xine-engine_info_helper_c,v 1.1 2011/05/11 09:05:55 dcoppa Exp $

Various small memory leaks in xine engine.

--- src/xine-engine/info_helper.c.orig	Mon May  9 20:36:53 2011
+++ src/xine-engine/info_helper.c	Mon May  9 20:38:25 2011
@@ -241,9 +241,6 @@ static void meta_info_set_unlocked_encoding(xine_strea
         xprintf(stream->xine, XINE_VERBOSITY_LOG,
                 _("info_helper: unsupported conversion %s -> UTF-8, no conversion performed\n"), enc);
 
-      if (system_enc)
-        free(system_enc);
-
       if (cd != (iconv_t)-1) {
         char *utf8_value;
         ICONV_CONST char *inbuf;
@@ -273,6 +270,8 @@ static void meta_info_set_unlocked_encoding(xine_strea
         return;
       }
     }
+
+    free(system_enc);
   }
 #endif
 
