Don't delete objects allocated in renderdoc module outside it.

This commit is contained in:
baldurk
2017-04-27 18:18:25 +01:00
parent 5fbf49a304
commit dd2f6eb88a
7 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -644,7 +644,7 @@ void PixelHistoryView::startDebug(EventTag tag)
if(trace->states.count == 0)
{
RDDialog::critical(this, tr("Debug Error"), tr("Error debugging pixel."));
delete trace;
m_Ctx.Replay().AsyncInvoke([trace](IReplayController *r) { r->FreeTrace(trace); });
return;
}