[gthumb] rename series: free the text after use
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] rename series: free the text after use
- Date: Sat, 19 Jun 2021 18:10:37 +0000 (UTC)
commit 11afbf258e6b242520106b85ad74e5a4cabb3b33
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri May 21 08:06:02 2021 +0200
rename series: free the text after use
extensions/rename_series/dlg-rename-series.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/extensions/rename_series/dlg-rename-series.c b/extensions/rename_series/dlg-rename-series.c
index 17214ec0..60c784fe 100644
--- a/extensions/rename_series/dlg-rename-series.c
+++ b/extensions/rename_series/dlg-rename-series.c
@@ -198,8 +198,10 @@ template_eval_cb (TemplateFlags flags,
break;
}
- if (text != NULL)
+ if (text != NULL) {
g_string_append (result, text);
+ g_free (text);
+ }
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]