aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-event.c')
-rw-r--r--matrix-event.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/matrix-event.c b/matrix-event.c
index 3f1b714..3413474 100644
--- a/matrix-event.c
+++ b/matrix-event.c
@@ -50,5 +50,8 @@ void matrix_event_free(MatrixRoomEvent *event)
g_free(event->txn_id);
g_free(event->sender);
g_free(event->event_type);
+ if (event->hook) {
+ event->hook(event, TRUE);
+ }
g_free(event);
}