shithub: riscv

Download patch

ref: d9591a54d23e99daa351ed8a76b0a8c3bcf2690a
parent: bed7f3f1a31946d417822613d01094ace514c73f
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Mon Sep 26 13:48:32 EDT 2022

togif: fix a typo - don't free the same image we're going to use

--- a/sys/src/cmd/jpg/togif.c
+++ b/sys/src/cmd/jpg/togif.c
@@ -77,7 +77,7 @@
 			ni = memonechan(i);
 			if(ni == nil)
 				sysfatal("converting image to RGBV: %r");
-			if(i != nil){
+			if(i != ni){
 				freememimage(i);
 				i = ni;
 			}