Skip to content

Commit 782b11f

Browse files
committed
fix issue #107
1 parent b83e977 commit 782b11f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/com/sun/jna/Structure.java

+1
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ public int size() {
374374
}
375375

376376
public void clear() {
377+
ensureAllocated();
377378
memory.clear(size());
378379
}
379380

0 commit comments

Comments
 (0)