Core - IDownloadItemCallback incorrectly disposed on Pause/Resume

Resolves #3145
This commit is contained in:
amaitland
2020-06-09 14:13:08 +10:00
parent 1d8c90258e
commit ae99a30364
@@ -50,18 +50,18 @@ namespace CefSharp
{
ThrowIfDisposed();
//Only free the callback when cancel called
//Need to be able to pause/resume #3145
_callback->Pause();
delete this;
}
virtual void Resume()
{
ThrowIfDisposed();
//Only free the callback when cancel called
//Need to be able to pause/resume #3145
_callback->Resume();
_callback = NULL;
}
};
}