vo_opengl: call ra_free() in the correct context
This also fixes a double free in vo_opengl_cb.c.
This commit is contained in:
1 parent
bbb57694b0
commit
61c8a147b5
2 files changed
+1
-1
No files matched your search
@@ -3499,7 +3499,6 @@ void gl_video_uninit(struct gl_video *p)
|
||||
// Should all have been unreffed already.
|
||||
assert(!p->num_dr_buffers);
|
||||
|
||||
ra_free(&p->ra);
|
||||
talloc_free(p);
|
||||
}
|
||||
|
||||
|
||||
@@ -388,6 +388,7 @@ static void uninit(struct vo *vo)
|
||||
hwdec_devices_set_loader(vo->hwdec_devs, NULL, NULL);
|
||||
hwdec_devices_destroy(vo->hwdec_devs);
|
||||
}
|
||||
ra_free(&p->ra);
|
||||
mpgl_uninit(p->glctx);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user