Skip to content

Commit

Permalink
PLplot use the same Free*Grid as Alloc-ed,
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Apr 21, 2024
1 parent 4275be7 commit adba3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PDL/Graphics/Simple/PLplot.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit adba3e6

Please sign in to comment.