084876f82b
Apply upstream fix OBS-URL: https://build.opensuse.org/request/show/529878 OBS-URL: https://build.opensuse.org/package/show/graphics/gifsicle?expand=0&rev=13
24 lines
768 B
Diff
24 lines
768 B
Diff
From f1b8e6323a8fdd029847b7efd400d5fc2ac9aecc Mon Sep 17 00:00:00 2001
|
|
From: Eddie Kohler <ekohler@gmail.com>
|
|
Date: Tue, 26 Sep 2017 08:46:13 -0700
|
|
Subject: [PATCH] Don't release the uncompressed image if it's all there is.
|
|
|
|
Fix #115, #116 issues reported by Zhao Liang, Huawei Weiran Labs.
|
|
---
|
|
src/support.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/support.c b/src/support.c
|
|
index e48075c..7978974 100644
|
|
--- a/src/support.c
|
|
+++ b/src/support.c
|
|
@@ -1405,7 +1405,7 @@ analyze_crop(int nmerger, Gt_Crop* crop, int compress_immediately)
|
|
}
|
|
|
|
found_right:
|
|
- if (compress_immediately > 0)
|
|
+ if (compress_immediately > 0 && srci->compressed)
|
|
Gif_ReleaseUncompressedImage(srci);
|
|
}
|
|
|