diff options
author | Timo Dritschler <timo.dritschler@kit.edu> | 2014-07-01 12:26:47 +0200 |
---|---|---|
committer | Timo Dritschler <timo.dritschler@kit.edu> | 2014-07-01 12:26:47 +0200 |
commit | 122715698f543448874176af5e3999f39b4a6a08 (patch) | |
tree | 9e1dd9a49a48c3b99a4576e345484060d29cdc63 /src | |
parent | ca46d010c312e804ee79265236301f02a606123f (diff) | |
download | kiro-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.c | 5 |
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); } |