[vlc-commits] vdpau/chroma: fix double free on error

Rémi Denis-Courmont git at videolan.org
Mon Mar 17 21:42:42 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 17 21:59:14 2014 +0200| [e6db986f3ad88db4772a155df9e20412ae1017de] | committer: Rémi Denis-Courmont

vdpau/chroma: fix double free on error

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e6db986f3ad88db4772a155df9e20412ae1017de
---

 modules/hw/vdpau/chroma.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/hw/vdpau/chroma.c b/modules/hw/vdpau/chroma.c
index b1d92a1..dd36758 100644
--- a/modules/hw/vdpau/chroma.c
+++ b/modules/hw/vdpau/chroma.c
@@ -391,7 +391,6 @@ static picture_t *VideoImport(filter_t *filter, picture_t *src)
     {
         msg_Err(filter, "video %s %s failure: %s", "surface", "import",
                 vdp_get_error_string(sys->vdp, err));
-        vdp_video_surface_destroy(sys->vdp, surface);
         goto error;
     }
 



More information about the vlc-commits mailing list