Commit 2e76b27d authored by gsamain's avatar gsamain

Make acthon message interface properly drop references on result&sync objects

parent bb81960d
...@@ -99,6 +99,7 @@ ...@@ -99,6 +99,7 @@
virtual int activate() = 0; virtual int activate() = 0;
ActhonMessageInterface(ActhonSyncInterface* sync_method, ActhonMessageInterface(ActhonSyncInterface* sync_method,
ActhonResultInterface* result_object); ActhonResultInterface* result_object);
virtual ~ActhonMessageInterface();
}; };
struct ActhonQueueInterface : public CyObject { struct ActhonQueueInterface : public CyObject {
...@@ -412,6 +413,12 @@ ActhonMessageInterface::ActhonMessageInterface(ActhonSyncInterface* sync_method, ...@@ -412,6 +413,12 @@ ActhonMessageInterface::ActhonMessageInterface(ActhonSyncInterface* sync_method,
Cy_INCREF(this->_result); Cy_INCREF(this->_result);
} }
ActhonMessageInterface::~ActhonMessageInterface()
{
Cy_XDECREF(this->_sync_method);
Cy_XDECREF(this->_result);
}
ActhonActivableClass::ActhonActivableClass(ActhonQueueInterface * queue_object, ActhonResultInterface *(*result_constructor)(void)) ActhonActivableClass::ActhonActivableClass(ActhonQueueInterface * queue_object, ActhonResultInterface *(*result_constructor)(void))
: _active_queue_class(queue_object), _active_result_class(result_constructor) : _active_queue_class(queue_object), _active_result_class(result_constructor)
{ {
......
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