Skip to content

Commit

Permalink
Dispose file handles when AndroidLibrary is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum authored Aug 11, 2023
1 parent a007cb2 commit 58f339f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/provision/androidlibrary.d
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ public class AndroidLibrary {
destroy(library);
}

if (elfFile) {
destroy(elfFile);
}

if (allocation) {
MmapAllocator.instance.deallocate((allocation.ptr - shift)[0..allocation.length + shift]);
}
Expand Down

0 comments on commit 58f339f

Please sign in to comment.