ges-launcher: don't leak sanitized_timeline string

Summary:
sanitized_timeline is created when parsing command line,
but it isn't free'd.

Reviewers: thiblahute

Differential Revision: https://phabricator.freedesktop.org/D382
This commit is contained in:
Justin Kim 2016-02-12 19:18:24 +01:00 committed by Thibault Saunier
parent 1069cca0e0
commit 61c25a312f

View file

@ -793,6 +793,7 @@ _shutdown (GApplication * application)
{
gint validate_res = 0;
GESLauncher *self = GES_LAUNCHER (application);
ParsedOptions *opts = &self->priv->parsed_options;
_save_timeline (self);
@ -808,6 +809,8 @@ _shutdown (GApplication * application)
g_source_remove (self->priv->signal_watch_id);
#endif
g_free (opts->sanitized_timeline);
G_APPLICATION_CLASS (ges_launcher_parent_class)->shutdown (application);
}