VideoThread: Destroy inline reconfigure commands

Run the non-trivial reconfigure command destructor after direct single-threaded
execution to release copied settings resources before FIFO storage is reused.
pull/3799/head
Stenzek 1 week ago
parent e0519a899f
commit 7131d91442
No known key found for this signature in database

@ -580,7 +580,10 @@ bool VideoThread::Reconfigure(std::optional<GPURenderer> renderer, bool upload_v
cmd->settings = g_settings;
if (!s_state.use_thread) [[unlikely]]
{
ReconfigureOnThread(cmd);
cmd->~VideoThreadReconfigureCommand();
}
else
PushCommandAndSync(cmd, false);

Loading…
Cancel
Save