aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-static_proc.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/synth-static_proc.adb')
-rw-r--r--src/synth/synth-static_proc.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/synth/synth-static_proc.adb b/src/synth/synth-static_proc.adb
index be0475b4a..60388607b 100644
--- a/src/synth/synth-static_proc.adb
+++ b/src/synth/synth-static_proc.adb
@@ -32,8 +32,8 @@ package body Synth.Static_Proc is
Inter : constant Node := Get_Interface_Declaration_Chain (Imp);
Param : constant Valtyp := Get_Value (Syn_Inst, Inter);
begin
- Synth.Heap.Synth_Deallocate (Param.Val.Acc);
- Param.Val.Acc := Null_Heap_Index;
+ Synth.Heap.Synth_Deallocate (Read_Access (Param));
+ Write_Access (Param.Val.Mem, Null_Heap_Index);
end Synth_Deallocate;
procedure Synth_Static_Procedure (Syn_Inst : Synth_Instance_Acc;