From adba3e6701ccf76c9d216959e53b36314fec82cc Mon Sep 17 00:00:00 2001 From: Ed J Date: Sun, 21 Apr 2024 20:48:19 +0100 Subject: [PATCH] PLplot use the same Free*Grid as Alloc-ed, --- lib/PDL/Graphics/Simple/PLplot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PDL/Graphics/Simple/PLplot.pm b/lib/PDL/Graphics/Simple/PLplot.pm index 9073077..98ac195 100644 --- a/lib/PDL/Graphics/Simple/PLplot.pm +++ b/lib/PDL/Graphics/Simple/PLplot.pm @@ -245,7 +245,7 @@ our $plplot_methods = { my $grid = plAlloc2dGrid($data->[0], $data->[1]); plshades( $data->[2], $xmin, $xmax, $ymin, $ymax, $clevel, $fill_width, $cont_color, $cont_width, 0, 0, \&pltr2, $grid ); - plFreeGrid($grid); + plFree2dGrid($grid); if($ipo->{wedge}) { # Work around PLplot justify bug