vlc | branch: master | Zhao Zhili <quinkbl...@foxmail.com> | Sat Apr 28 11:19:27 2018 +0800| [effd0216d70bbd4ef12ee899b2fe9de55e70cd22] | committer: Jean-Baptiste Kempf
vout/opengl: fix leak Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=effd0216d70bbd4ef12ee899b2fe9de55e70cd22 --- src/video_output/opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_output/opengl.c b/src/video_output/opengl.c index c29464116e..b700fa4637 100644 --- a/src/video_output/opengl.c +++ b/src/video_output/opengl.c @@ -148,7 +148,7 @@ vlc_gl_t *vlc_gl_surface_Create(vlc_object_t *obj, vlc_gl_t *gl = vlc_gl_Create(surface, VLC_OPENGL, NULL); if (gl == NULL) { vout_window_Delete(surface); - return NULL; + goto error; } vlc_gl_Resize(gl, cfg->width, cfg->height); _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits