Commit d5e1207a authored by Guido Gunther's avatar Guido Gunther

toplevel: Don't leak app_id

Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 0e016d4b
......@@ -165,6 +165,16 @@ phosh_toplevel_dispose (GObject *object)
}
static void
phosh_toplevel_finalize (GObject *object)
{
PhoshToplevel *self = PHOSH_TOPLEVEL(object);
g_clear_pointer (&self->app_id, g_free);
G_OBJECT_CLASS (phosh_toplevel_parent_class)->finalize (object);
}
static void
phosh_toplevel_constructed (GObject *object)
{
......@@ -235,6 +245,7 @@ phosh_toplevel_class_init (PhoshToplevelClass *klass)
object_class->get_property = phosh_toplevel_get_property;
object_class->constructed = phosh_toplevel_constructed;
object_class->dispose = phosh_toplevel_dispose;
object_class->finalize = phosh_toplevel_finalize;
props[PHOSH_TOPLEVEL_PROP_HANDLE] =
g_param_spec_pointer ("handle",
......
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