diff options
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r-- | video/out/gl_video.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index d2d0c2e571..07ba0bd602 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -2197,6 +2197,9 @@ static int init_gl(struct gl_video *p) void gl_video_uninit(struct gl_video *p) { + if (!p) + return; + GL *gl = p->gl; uninit_video(p); |