[gimp/gimp-2-10] app: properly free internal strings at finalization and before…
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: properly free internal strings at finalization and before…
- Date: Fri, 23 Oct 2020 00:18:44 +0000 (UTC)
commit 7cfbb1739c57372a6891fa2aaf621d1c91d3084e
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.
(cherry picked from commit 89db5f65fda9aa41e85641828e5e3b503b5918af)
app/config/gimpcoreconfig.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/app/config/gimpcoreconfig.c b/app/config/gimpcoreconfig.c
index 15704b1888..823e8084ab 100644
--- a/app/config/gimpcoreconfig.c
+++ b/app/config/gimpcoreconfig.c
@@ -890,6 +890,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);
@@ -1104,12 +1105,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]