Issue #36: Fix possible memory leak of async status message, if rendering finishes, before message could be displayed

This commit is contained in:
Mario Hüttel 2020-04-03 20:53:32 +02:00
parent 75e01b80c8
commit 00d02b8291

View File

@ -100,6 +100,11 @@ static void gds_output_renderer_dispose(GObject *self_obj)
if (priv->output_file) if (priv->output_file)
g_free(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); g_clear_object(&priv->layer_settings);
/* Chain up to parent class */ /* Chain up to parent class */