dotnet / android-libzipsharp

A managed wrapper (and then some) around libzip (https://libzip.org/)
MIT License
30 stars 12 forks source link

Fixed an issue where the stream/byte[] objects were being GC'd #3

Closed dellis1972 closed 8 years ago

dellis1972 commented 8 years ago

The libzip seems to write most of its data during the close method call. If a stream or byte[] array has been collected it can cause problems.

Also the callback seems to be called AFTER the ZipArchive has been disposed. Which causes a SIGSEGV. So we need to make the callback static.