mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
A null pointer check
This commit is contained in:
@@ -261,7 +261,8 @@ bool ExportFFmpeg::Init(const char *shortname, AudacityProject *project, const T
|
||||
{
|
||||
// This will undo the acquisition of resources along any early exit path:
|
||||
auto deleter = [](ExportFFmpeg *This) {
|
||||
This->FreeResources();
|
||||
if (This)
|
||||
This->FreeResources();
|
||||
};
|
||||
std::unique_ptr<ExportFFmpeg, decltype(deleter)> cleanup{ this, deleter };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user