X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fglk.c;h=4304aefae2aa0c80500df836f136f3817d65a693;hb=4a1188d59e0c9958df56cf5fb61d04ee8fb1e37c;hp=27e30072769198e0ec2a0ec2959ca0a0a5fee8d6;hpb=6702e46cbf0d5980a7386038d019c03fb12d3b52;p=rodin%2Fchimara.git diff --git a/libchimara/glk.c b/libchimara/glk.c index 27e3007..4304aef 100644 --- a/libchimara/glk.c +++ b/libchimara/glk.c @@ -42,20 +42,7 @@ G_GNUC_INTERNAL GPrivate *glk_data_key = NULL; void glk_exit(void) { - ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key); - - if(!glk_data->in_startup) - g_signal_emit_by_name(glk_data->self, "stopped"); - - /* Stop any timers */ - glk_request_timer_events(0); - - /* Close any open resource files */ - if(glk_data->resource_map != NULL) { - giblorb_destroy_map(glk_data->resource_map); - glk_stream_close(glk_data->resource_file, NULL); - } - + shutdown_glk(); g_thread_exit(NULL); }