diff --git a/libbanshee/banshee-player.c b/libbanshee/banshee-player.c
index 9ad3e08..c655a72 100644
--- a/libbanshee/banshee-player.c
+++ b/libbanshee/banshee-player.c
@@ -483,7 +483,7 @@ bp_get_subtitle_uri (BansheePlayer *player)
 P_INVOKE gchar *
 bp_get_subtitle_description (BansheePlayer *player, int i)
 {
-    gchar *code;
+    gchar *code = NULL;
     gchar *desc = NULL;
     GstTagList *tags = NULL;
 
@@ -498,6 +498,7 @@ bp_get_subtitle_description (BansheePlayer *player, int i)
 
         // ISO 639-2 undetermined language
         if (strcmp ((const gchar *)code, "und") == 0) {
+            g_free (code);
             return NULL;
         }
         bp_debug ("[subtitle]: iso 639-2 subtitle code %s", code);
