Commit 07f44871 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

DatabaseHelper: Fix potential use after free

parent 88b68fdc
......@@ -65,8 +65,9 @@ public:
auto it = Store.find( key );
if ( it != end( Store ) )
{
auto value = std::move( it->second );
Store.erase( it );
return it->second;
return value;
}
return nullptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment