mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Fix most of memleaks discovered by valgrind
This commit is contained in:
@@ -106,8 +106,6 @@ ObstacleInfo * ObstacleHandler::loadFromJson(const std::string & scope, const Js
|
||||
info->isAbsoluteObstacle = json["absolute"].Bool();
|
||||
info->isForegroundObstacle = json["foreground"].Bool();
|
||||
|
||||
objects.emplace_back(info);
|
||||
|
||||
return info;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user