[gegl] ff-save: free sws context when done



commit eebc2b34b656e3761a91e3f570ceaf20b5d12d2f
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Nov 27 15:13:27 2015 +0100

    ff-save: free sws context when done

 operations/external/ff-save.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/operations/external/ff-save.c b/operations/external/ff-save.c
index 828e32a..42c9350 100644
--- a/operations/external/ff-save.c
+++ b/operations/external/ff-save.c
@@ -710,6 +710,7 @@ write_video_frame (GeglProperties *o,
          p->picture->format = c->pix_fmt;
          p->picture->width = c->width;
          p->picture->height = c->height;
+         sws_freeContext (img_convert_ctx);
         }
     }
   else


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