*/}}
Browse Source

In theory prevents multiple "lawriteprop" call

YimingWu 1 day ago
parent
commit
583eb73077
1 changed files with 5 additions and 5 deletions
  1. 5 5
      la_data.c

+ 5 - 5
la_data.c

@@ -3777,11 +3777,11 @@ int laRegisterModifications(int ReturnIfAnyMod, int ReturnIfAnyEmpty, int* rempt
         if(!m->udf)continue;
         m->udf->Modified=0; 
         la_ClearHyper2Instances(m->udf);
-        //laUDFPropSegment* ps; while(ps = lstPopItem(&m->udf->PropsToOperate)){
-        //    la_FreePropStepCache(ps->PP.Go);
-        //    strSafeDestroy(&ps->Path);
-        //    FreeMem(ps);
-        //}
+        laUDFPropSegment* ps; while(ps = lstPopItem(&m->udf->PropsToOperate)){
+            la_FreePropStepCache(ps->PP.Go);
+            strSafeDestroy(&ps->Path);
+            FreeMem(ps);
+        }
     }
     for(laManagedSaveProp* msp=MAIN.ManagedSaveProps.pFirst;msp;msp=msp->Item.pNext){
         laPropPack PP={0}; registered=0;