summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-07-01 12:26:47 +0200
committerTimo Dritschler <timo.dritschler@kit.edu>2014-07-01 12:26:47 +0200
commit122715698f543448874176af5e3999f39b4a6a08 (patch)
tree9e1dd9a49a48c3b99a4576e345484060d29cdc63 /src
parentca46d010c312e804ee79265236301f02a606123f (diff)
downloadkiro-122715698f543448874176af5e3999f39b4a6a08.tar.gz
kiro-122715698f543448874176af5e3999f39b4a6a08.tar.bz2
kiro-122715698f543448874176af5e3999f39b4a6a08.tar.xz
kiro-122715698f543448874176af5e3999f39b4a6a08.zip
Fixed possible segfault due to missing cleanup of event listener thread
Diffstat (limited to 'src')
-rw-r--r--src/kiro-server.c5
1 files changed, 4 insertions, 1 deletions
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);
}