[gthumb] rename series: free the text after use



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]