From 122715698f543448874176af5e3999f39b4a6a08 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Tue, 1 Jul 2014 12:26:47 +0200 Subject: Fixed possible segfault due to missing cleanup of event listener thread --- src/kiro-server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/kiro-server.c b/src/kiro-server.c index 52304c8..6b63fcc 100644 --- a/src/kiro-server.c +++ b/src/kiro-server.c @@ -74,7 +74,10 @@ static void kiro_server_init (KiroServer *self) static void kiro_server_finalize (GObject *object) { - //PASS + KiroServer *self = KIRO_SERVER(object); + KiroServerPrivate *priv = KIRO_SERVER_GET_PRIVATE(self); + pthread_mutex_unlock(&(priv->mtx)); + pthread_join(priv->event_listener, NULL); } -- cgit v1.2.3