File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/main/java/software/coley/llzip/util Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,10 @@ public void close() {
103103 if (cleaned )
104104 return ;
105105 cleaned = true ;
106- }
107- ByteBuffer buffer = this . buffer ;
108- if ( buffer . isDirect ()) {
109- CleanerUtil . invokeCleaner ( buffer );
106+ ByteBuffer buffer = this . buffer ;
107+ if ( buffer . isDirect ()) {
108+ CleanerUtil . invokeCleaner ( buffer );
109+ }
110110 }
111111 }
112112 }
Original file line number Diff line number Diff line change @@ -116,11 +116,11 @@ public void close() {
116116 if (cleaned )
117117 return ;
118118 cleaned = true ;
119+ Runnable deallocator = this .deallocator ;
120+ if (deallocator != null )
121+ deallocator .run ();
119122 }
120123 }
121- Runnable deallocator = this .deallocator ;
122- if (deallocator != null )
123- deallocator .run ();
124124 }
125125
126126 private void ensureOpen () {
You can’t perform that action at this time.
0 commit comments