From 89db5f65fda9aa41e85641828e5e3b503b5918af Mon Sep 17 00:00:00 2001 From: Jehan Date: Thu, 22 Oct 2020 16:04:38 +0200 Subject: [PATCH] =?UTF-8?q?app:=20properly=20free=20internal=20strings=20a?= =?UTF-8?q?t=20finalization=20and=20before=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … overriding their previous value. --- app/config/gimpcoreconfig.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/config/gimpcoreconfig.c b/app/config/gimpcoreconfig.c index 2e7aaf279f..edaca777f4 100644 --- a/app/config/gimpcoreconfig.c +++ b/app/config/gimpcoreconfig.c @@ -898,6 +898,7 @@ gimp_core_config_finalize (GObject *object) g_free (core_config->import_raw_plug_in); g_clear_pointer (&core_config->last_known_release, g_free); + g_clear_pointer (&core_config->last_release_comment, g_free); g_clear_object (&core_config->default_image); g_clear_object (&core_config->default_grid); @@ -1112,12 +1113,14 @@ gimp_core_config_set_property (GObject *object, core_config->last_release_timestamp = g_value_get_int64 (value); break; case PROP_LAST_RELEASE_COMMENT: + g_clear_pointer (&core_config->last_release_comment, g_free); core_config->last_release_comment = g_value_dup_string (value); break; case PROP_LAST_REVISION: core_config->last_revision = g_value_get_int (value); break; case PROP_LAST_KNOWN_RELEASE: + g_clear_pointer (&core_config->last_known_release, g_free); core_config->last_known_release = g_value_dup_string (value); break; case PROP_SAVE_DOCUMENT_HISTORY: