Revision 20374 trunk/libraries/libjni-mrsid/src/main/java/es/gva/cit/jmrsid/LTIImageReader.java
LTIImageReader.java | ||
---|---|---|
79 | 79 |
*/ |
80 | 80 |
|
81 | 81 |
protected void finalize(){ |
82 |
this.close(); |
|
82 |
if (cPtr != 0) |
|
83 |
this.close(); |
|
83 | 84 |
} |
84 | 85 |
|
85 | 86 |
/** |
... | ... | |
87 | 88 |
* |
88 | 89 |
*/ |
89 | 90 |
public void close(){ |
90 |
if(cPtr > 0){
|
|
91 |
if(cPtr != 0){
|
|
91 | 92 |
FreeLTIImageReaderNat(cPtr); |
92 |
cPtr = -1;
|
|
93 |
cPtr = 0;
|
|
93 | 94 |
} |
94 | 95 |
} |
95 | 96 |
|
Also available in: Unified diff