Linkgraph: Use an arena allocator for path objects.

Fixes leaks when job is aborted early.
This commit is contained in:
Jonathan G Rennison
2017-02-08 21:46:32 +00:00
parent a67ecb4f6e
commit c86a027e88
3 changed files with 11 additions and 8 deletions

View File

@@ -13,6 +13,7 @@
#define LINKGRAPHJOB_H
#include "../thread/thread.h"
#include "../core/dyn_arena_alloc.hpp"
#include "linkgraph.h"
#include <list>
#include <memory>
@@ -77,6 +78,8 @@ protected:
public:
DynUniformArenaAllocator path_allocator; ///< Arena allocator used for paths
bool IsJobAborted() const;
/**