Linkgraph: Use an arena allocator for path objects.
Fixes leaks when job is aborted early.
This commit is contained in:
@@ -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;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user