aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/manager/EventManager.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-20 18:42:04 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-20 18:42:04 +0100
commit9032dda232e5d7e178b1d9e40ab37dd25973459c (patch)
treeae02998c5b52ae29ccca34d1cc2a1b1990784399 /src/crepe/manager/EventManager.h
parent0ba89eff9283d5f9f59fa763a19f4616f1c66d74 (diff)
fix EventManager memory leak
Diffstat (limited to 'src/crepe/manager/EventManager.h')
-rw-r--r--src/crepe/manager/EventManager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/manager/EventManager.h b/src/crepe/manager/EventManager.h
index 639e37f..930d950 100644
--- a/src/crepe/manager/EventManager.h
+++ b/src/crepe/manager/EventManager.h
@@ -106,7 +106,7 @@ private:
* \brief Represents an entry in the event queue.
*/
struct QueueEntry {
- std::unique_ptr<Event> event; ///< The event instance.
+ std::unique_ptr<Event, std::function<void(Event*)>> event; ///< The event instance.
event_channel_t channel = CHANNEL_ALL; ///< The channel associated with the event.
std::type_index type; ///< The type of the event.
};