[gimp] app: properly free internal strings at finalization and before…
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: properly free internal strings at finalization and before…
- Date: Thu, 22 Oct 2020 14:05:48 +0000 (UTC)
commit 89db5f65fda9aa41e85641828e5e3b503b5918af
Author: Jehan <jehan girinstud io>
Date: Thu Oct 22 16:04:38 2020 +0200
app: properly free internal strings at finalization and before…
… 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]