Commit 2e22a033 authored by Christian Hergert's avatar Christian Hergert

locator: free search path

parent 945269ea
......@@ -122,9 +122,25 @@ tmpl_template_locator_real_locate (TmplTemplateLocator *self,
return ret;
}
static void
tmpl_template_locator_finalize (GObject *object)
{
TmplTemplateLocator *self = (TmplTemplateLocator *)object;
TmplTemplateLocatorPrivate *priv = tmpl_template_locator_get_instance_private (self);
g_queue_free_full (priv->search_path, g_free);
priv->search_path = NULL;
G_OBJECT_CLASS (tmpl_template_locator_parent_class)->finalize (object);
}
static void
tmpl_template_locator_class_init (TmplTemplateLocatorClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->finalize = tmpl_template_locator_finalize;
klass->locate = tmpl_template_locator_real_locate;
}
......
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