Revision 20374 trunk/libraries/libjni-mrsid/src/main/java/es/gva/cit/jmrsid/LTIPixel.java

View differences:

LTIPixel.java
67 67
	 */
68 68
	
69 69
	protected void finalize(){
70
		//System.out.println("Finalizando LTIPixel ..."+cPtr);
71
		if(cPtr > 0)
70
		if(cPtr != 0)
72 71
			FreeLTIPixelNat(cPtr);
73 72
	}
74 73
	
......
92 91
    */
93 92
   public LTIPixel(int eColorSpace, int nBands, int eSampleType)throws MrSIDException{
94 93
   	
95
   	 cPtr=LTIPixelNat(eColorSpace, nBands, eSampleType);
94
   	 cPtr = LTIPixelNat(eColorSpace, nBands, eSampleType);
96 95
   	 
97
	 if(cPtr<0)
96
	 if(cPtr == 0)
98 97
			throw new MrSIDException("Error in native constructor LTIPixel");
99 98
   	 
100 99
   }

Also available in: Unified diff