]> git.sesse.net Git - vlc/blobdiff - modules/video_output/caca.c
svg module: fix memleak.
[vlc] / modules / video_output / caca.c
index 54d7cfc7ab9c1d1bf5b465378536069020c25a92..c0287b3707f1b5117f3cb7b4adb8e156d5b95e8e 100644 (file)
@@ -372,8 +372,11 @@ static int Manage( vout_thread_t *p_vout )
         case CACA_EVENT_QUIT:
         {
             p_playlist = pl_Yield( p_vout );
-            playlist_Stop( p_playlist );
-            vlc_object_release( p_playlist );
+            if( p_playlist )
+            {
+                playlist_Stop( p_playlist );
+                pl_Release( p_vout );
+            }
             vlc_object_kill( p_vout->p_libvlc );
             break;
         }
@@ -391,7 +394,7 @@ static int Manage( vout_thread_t *p_vout )
  *****************************************************************************/
 static void Render( vout_thread_t *p_vout, picture_t *p_pic )
 {
-    cucul_set_color( p_vout->p_sys->p_cv,
+    cucul_set_color_ansi( p_vout->p_sys->p_cv,
                      CUCUL_COLOR_DEFAULT, CUCUL_COLOR_BLACK );
     cucul_clear_canvas( p_vout->p_sys->p_cv );
     cucul_dither_bitmap( p_vout->p_sys->p_cv, 0, 0,