Fix memleaks and slightly improve perfs
[scilab.git] / scilab / modules / graphics / sci_gateway / c / sci_xrects.c
index 4284f96..4a8412e 100644 (file)
@@ -120,6 +120,8 @@ int sci_xrects( char *fname, unsigned long fname_len )
     /** make Compound current object **/
     setCurrentObject(pstCompoundUID);
 
+    releaseGraphicObjectProperty(-1, pstCompoundUID, jni_string, 0);
+
     LhsVar(1) = 0;
     PutLhsVar();
     return 0;