]> git.sesse.net Git - vlc/commitdiff
Don't release an object that was not held, fix crash
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 29 Oct 2009 16:52:32 +0000 (18:52 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 29 Oct 2009 16:55:52 +0000 (18:55 +0200)
This piece of code (transparent UTF-16 to UTF-8 conversion) is wrong in
many ways though. This really does NOT belong here, and should be done
in the subsdec plugin instead.

This fixes a regression from [0d1f966a0b3581d3e96423ce34f32b4da7725c31]

src/input/stream.c

index e97e5862ced96b78cf0065a1a715afa2db203a50..b656822baf95bef969d8db3980c861d8ab8645a5 100644 (file)
@@ -1547,7 +1547,6 @@ char *stream_ReadLine( stream_t *s )
                 {
                     var_Create( p_input, "subsdec-encoding", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
                     var_SetString( p_input, "subsdec-encoding", "UTF-8" );
-                    vlc_object_release( p_input );
                 }
             }
         }