[gimp/gimp-2-10] plug-ins: fix several memory leaks in metadata-editor.
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plug-ins: fix several memory leaks in metadata-editor.
- Date: Tue, 16 Mar 2021 17:27:50 +0000 (UTC)
commit cb3f7d527d8b8ccbfa4ff97d48096c2664ed876d
Author: Jacob Boerema <jgboerema gmail com>
Date: Sun Mar 14 18:32:09 2021 -0400
plug-ins: fix several memory leaks in metadata-editor.
(cherry picked from commit 184b803811edfb5a8c75a9fa5c99718fb544ecb0)
plug-ins/metadata/metadata-editor.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/plug-ins/metadata/metadata-editor.c b/plug-ins/metadata/metadata-editor.c
index a95d58748b..c9861cbbe8 100644
--- a/plug-ins/metadata/metadata-editor.c
+++ b/plug-ins/metadata/metadata-editor.c
@@ -1973,6 +1973,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
gchar *value_utf;
value_utf = clean_xmp_string (value);
+ g_free (value);
if (! strcmp ("single", imageSupplierInfoTags[i].mode))
{
@@ -1985,6 +1986,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (widget));
gtk_text_buffer_set_text (buffer, value_utf, -1);
}
+ g_free (value_utf);
}
}
@@ -2003,11 +2005,13 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
gchar *value_utf;
value_utf = clean_xmp_string (value);
+ g_free (value);
if (! strcmp ("single", locationCreationInfoTags[i].mode))
{
gtk_entry_set_text (GTK_ENTRY (widget), value_utf);
}
+ g_free (value_utf);
}
}
@@ -2027,6 +2031,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
gchar *value_utf;
value_utf = clean_xmp_string (value);
+ g_free (value);
if (! strcmp ("single", creatorContactInfoTags[i].mode))
{
@@ -2038,6 +2043,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (widget));
gtk_text_buffer_set_text (buffer, value_utf, -1);
}
+ g_free (value_utf);
}
}
@@ -3601,6 +3607,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
gtk_combo_box_set_active (GTK_COMBO_BOX (widget), data);
}
}
+ g_free (value);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]