]> git.sesse.net Git - vlc/commitdiff
Put vlc_object_release() at the proper place. This fixes a refcounting problem.
authorJean-Paul Saman <jpsaman@videolan.org>
Thu, 20 Oct 2005 19:42:24 +0000 (19:42 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Thu, 20 Oct 2005 19:42:24 +0000 (19:42 +0000)
modules/control/rc.c

index 564afe227b975392ececf2ec29a4a0645e075aa9..8b4e055c4543181c1dd2fdd0398ec0683a78e3be 100644 (file)
@@ -1930,8 +1930,8 @@ static int Menu( vlc_object_t *p_this, char const *psz_cmd,
             vlc_object_release( p_playlist );
             return VLC_EGENERIC;
         }
-        vlc_object_release( p_playlist );
     }
+    vlc_object_release( p_playlist );
 
     val.psz_string = strdup( newval.psz_string );
     if( !strcmp( val.psz_string, "on" ) || !strcmp( val.psz_string, "show" ))