Skip to content

Commit 92f36b9

Browse files
committedApr 21, 2024·
free allocated memory in x09 and demo
1 parent 1dd9b26 commit 92f36b9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎Demo.pm

+2
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ my @demo = (
148148
plcol0( 1 );
149149
plstransform( undef, undef );
150150
plflush();
151+
plFree2dGrid($cgrid2);
151152
]],
152153

153154
[act => q[
@@ -195,6 +196,7 @@ my @demo = (
195196
plcol0 (1);
196197
plline ($px , $py); # Plot the cylinder
197198
plflush();
199+
plFree2dGrid($cgrid2);
198200
]],
199201

200202
[actnw => q|

‎t/x09.pl

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ sub polar {
9191
plcol0 (1);
9292
pllab ("", "", "Polar Contour Plot");
9393

94-
# plFree2dGrid ($cgrid2);
94+
plFree2dGrid($cgrid2);
9595
}
9696

9797
# Shielded potential contour plot example
@@ -211,7 +211,7 @@ sub potential {
211211
plcol0 ($ncollab);
212212
pllab ("", "", "Shielded potential of charges in a conducting sphere");
213213

214-
# plFree2dGrid ($cgrid2);
214+
plFree2dGrid($cgrid2);
215215
}
216216

217217
# main

0 commit comments

Comments
 (0)
Please sign in to comment.