mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-20 04:08:54 -05:00
UI: Enter graphics context before destroying texture
Fixes a memory leak where the texture would not be properly freed.
This commit is contained in:
@@ -29,7 +29,9 @@ OBSBasicPreview::OBSBasicPreview(QWidget *parent, Qt::WindowFlags flags)
|
||||
OBSBasicPreview::~OBSBasicPreview()
|
||||
{
|
||||
if (overflow) {
|
||||
obs_enter_graphics();
|
||||
gs_texture_destroy(overflow);
|
||||
obs_leave_graphics();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user