shithub: jxl

Download patch

ref: 8b780e3e59ec287937c5754521329840a69b28ee
parent: e7ea7adedf43ec7e815cc105cf8028af81b5cf1e
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Aug 17 14:21:48 EDT 2023

remove useless comments

--- a/decode.c
+++ b/decode.c
@@ -59,7 +59,7 @@
 
 	if((in = readall(0, &sz)) == nil || (b = Bfdopen(1, OWRITE)) == nil)
 		sysfatal("%r");
-	j40_from_memory(&image, in, sz, free); // or: j40_from_memory(&image, buf, bufsize, freefunc);
+	j40_from_memory(&image, in, sz, free);
 	j40_output_format(&image, J40_RGBA, J40_U8X4);
 
 	if(j40_next_frame(&image)){
@@ -80,7 +80,7 @@
     if(j40_error(&image))
     	sysfatal("%s", j40_error_string(&image));
 
-    j40_free(&image); // also frees all memory associated to j40_frame etc.
+    j40_free(&image);
 	Bterm(b);
 
 	threadexitsall(nil);