mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 08:23:34 -05:00
Fixed memory leak
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
|
||||
#include "workers/Handle.h"
|
||||
#include "interfaces/IWorker.h"
|
||||
|
||||
|
||||
Handle::Handle(xmrig::IThread *config, uint32_t offset, size_t totalWays) :
|
||||
@@ -33,6 +34,7 @@ Handle::Handle(xmrig::IThread *config, uint32_t offset, size_t totalWays) :
|
||||
{
|
||||
}
|
||||
|
||||
Handle::~Handle() { if (m_worker) delete m_worker; }
|
||||
|
||||
void Handle::join()
|
||||
{
|
||||
|
||||
@@ -40,6 +40,7 @@ class Handle
|
||||
{
|
||||
public:
|
||||
Handle(xmrig::IThread *config, uint32_t offset, size_t totalWays);
|
||||
~Handle();
|
||||
void join();
|
||||
void start(void (*callback) (void *));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user