From 00d02b8291a2ac85983e9cee549d5858ea4ac246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Fri, 3 Apr 2020 20:53:32 +0200 Subject: [PATCH] Issue #36: Fix possible memory leak of async status message, if rendering finishes, before message could be displayed --- output-renderers/gds-output-renderer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/output-renderers/gds-output-renderer.c b/output-renderers/gds-output-renderer.c index 2b296ee..ce7fcb2 100644 --- a/output-renderers/gds-output-renderer.c +++ b/output-renderers/gds-output-renderer.c @@ -100,6 +100,11 @@ static void gds_output_renderer_dispose(GObject *self_obj) if (priv->output_file) g_free(priv->output_file); + if (priv->idle_function_parameters.status_message) { + g_free(priv->idle_function_parameters.status_message); + priv->idle_function_parameters.status_message = NULL; + } + g_clear_object(&priv->layer_settings); /* Chain up to parent class */