Skip to content

Commit 0eb9f14

Browse files
committed
we were leaking an image
1 parent 9273629 commit 0eb9f14

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
master
22

3+
- fix a ref leak in tilesource_new_from_file()
4+
35
## 4.0.0 31/05/25
46

57
- much better performance for images which are very tall and thin or very wide

src/tilesource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ tilesource_new_from_file(const char *filename)
18551855

18561856
/* And now we can reopen in the correct mode.
18571857
*/
1858-
VipsImage *base = tilesource_open(tilesource, 0);
1858+
g_autoptr(VipsImage) base = tilesource_open(tilesource, 0);
18591859
if (!base)
18601860
return NULL;
18611861
if (tilesource_set_base(tilesource, base))

0 commit comments

Comments
 (0)