[gimp] plug-ins: fix wrong g_free() in jpeg-save



commit 077e596dfc04e0290e16208b9a690137f9958e19
Author: Ell <ell_se yahoo com>
Date:   Thu Sep 12 19:37:52 2019 +0300

    plug-ins: fix wrong g_free() in jpeg-save
    
    ... after GFile port.

 plug-ins/file-jpeg/jpeg-save.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plug-ins/file-jpeg/jpeg-save.c b/plug-ins/file-jpeg/jpeg-save.c
index 30ac1fd3d5..908ef9e6a1 100644
--- a/plug-ins/file-jpeg/jpeg-save.c
+++ b/plug-ins/file-jpeg/jpeg-save.c
@@ -331,7 +331,7 @@ save_image (GFile        *file,
    */
   filename = g_file_get_path (file);
   outfile = g_fopen (filename, "wb");
-  g_free (file);
+  g_free (filename);
 
   if (! outfile)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]