Revision 31855

View differences:

branches/gvSIG_19_ext3D_osgVP_2_2_0/libraries/libjni-potrace/src/main/native/jpotrace/potrace_raster.c
938 938
	imginfo.pixwidth = bm->w;
939 939
	imginfo.pixheight = bm->h;
940 940
	calc_dimensions(&imginfo);
941
	
942
	// rgaitan: We cannot use here bm_free (becouse it
943
	// frees also the bm->map (that is a inbuffer, that in this
944
	// case comes from java so, FAIL!.
945
	//bm_free(bm);
941 946

  
942
	bm_free(bm);
943

  
944 947
	memory = showList(st->plist);
945 948

  
946 949
	potrace_state_free(st);
branches/gvSIG_19_ext3D_osgVP_2_2_0/libraries/libjni-potrace/src/main/native/jpotrace/potrace.c
44 44
	}
45 45

  
46 46
	values = vectorizarBuffer((long *) cbufferIn, width, height, length, list);
47
	// we release the used memory here
48
	(*env)->ReleaseIntArrayElements(env, bufferIn, cbufferIn, 0);
47 49
	size = (jsize) values[0];
48 50
	jvalues = (*env)->NewDoubleArray(env, size);
49 51
	(*env)->SetDoubleArrayRegion(env, jvalues, 0, size, values);

Also available in: Unified diff