Move AQLPacket::~AQLPacket to aql_packet.cpp (#137)

- this was defined in queue.cpp
This commit is contained in:
Jonathan R. Madsen
2023-10-18 23:37:49 -05:00
committed by GitHub
parent 0f523fbad1
commit dcc82f97ac
3 changed files with 52 additions and 22 deletions
-21
View File
@@ -245,27 +245,6 @@ WriteInterceptor(const void* packets,
}
} // namespace
AQLPacket::~AQLPacket()
{
if(!command_buf_mallocd)
{
free_func(profile.command_buffer.ptr);
}
else
{
free(profile.command_buffer.ptr);
}
if(!output_buffer_malloced)
{
free_func(profile.output_buffer.ptr);
}
else
{
free(profile.output_buffer.ptr);
}
}
Queue::~Queue()
{
// Potentially replace with condition variable at some point