[gimp] plug-ins: fix wrong data freeing.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: fix wrong data freeing.
- Date: Fri, 1 Oct 2021 09:49:31 +0000 (UTC)
commit e01c37c3dd468f66fd3460892b22b3bf989f86f7
Author: Jehan <jehan girinstud io>
Date: Fri Oct 1 11:47:27 2021 +0200
plug-ins: fix wrong data freeing.
`filename` was being leaked while `file` was not to be freed yet.
Thanks to Massimo for noticing.
plug-ins/common/file-xmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plug-ins/common/file-xmc.c b/plug-ins/common/file-xmc.c
index e41ec92741..c4900c820e 100644
--- a/plug-ins/common/file-xmc.c
+++ b/plug-ins/common/file-xmc.c
@@ -898,7 +898,7 @@ load_thumbnail (GFile *file,
filename = g_file_get_path (file);
fp = g_fopen (filename, "rb");
- g_free (file);
+ g_free (filename);
if (! fp)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]