Skip to content

Commit

Permalink
Changelog update, fix for small leak introduced in 5c5d74a
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Aug 17, 2016
1 parent 5c5d74a commit 7ada9db
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Requires libvips v8.3.3
[#511](https://github.com/lovell/sharp/pull/511)
[@mhirsch](https://github.com/mhirsch)

* Add joinChannel and toColourspace/toColorspace operations.
[#513](https://github.com/lovell/sharp/pull/513)
[@mhirsch](https://github.com/mhirsch)

* Add support for raw pixel data with boolean and withOverlay operations.
[#516](https://github.com/lovell/sharp/pull/516)
[@mhirsch](https://github.com/mhirsch)
Expand Down
5 changes: 5 additions & 0 deletions src/pipeline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,11 @@ class PipelineWorker : public Nan::AsyncWorker {
delete baton->input;
delete baton->overlay;
delete baton->boolean;
for_each(baton->joinChannelIn.begin(), baton->joinChannelIn.end(),
[this](sharp::InputDescriptor *joinChannelIn) {
delete joinChannelIn;
}
);
delete baton;

// Decrement processing task counter
Expand Down
11 changes: 10 additions & 1 deletion test/leak/sharp.supp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,16 @@
...
fun:jpeg_finish_compress
}

{
value_jpeg_obj
Memcheck:Value8
obj:*/libjpeg.so*
}
{
cond_jpeg_obj
Memcheck:Cond
obj:*/libjpeg.so*
}
# libpng
{
cond_libpng_png_read_row
Expand Down

0 comments on commit 7ada9db

Please sign in to comment.