Commit 5f683f33 authored by Adrien Plazas's avatar Adrien Plazas

demo: Unset the keyboard on destruction

This works around a reference cycle between the view holding a reference
to the core and the core holding a reference to the view as its
parent 166cb45c
......@@ -78,6 +78,8 @@ retro_demo_application_finalize (GObject *object)
RetroDemoApplication *self = RETRO_DEMO_APPLICATION (object);
retro_core_set_keyboard (self->core, NULL);
if (self->core != NULL)
g_object_unref (self->core);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment