Skip to content

Commit

Permalink
remove check
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Feb 3, 2025
1 parent 7cdb96d commit d09b87c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/nviz/exag.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ int Nviz_get_exag_height(double *val, double *min, double *max)

G_debug(1, "Nviz_get_exag_height(): value = %f min = %f max = %f", *val,
min ? *min : 0.0, max ? *max : 0.0);
if (nsurfs > 0)
G_free(surf_list);
G_free(surf_list);

return 1;
}
Expand Down Expand Up @@ -95,9 +94,7 @@ double Nviz_get_exag(void)

if (exag == 0.0)
exag = 1.0;

if (nsurfs > 0)
G_free(surf_list);
G_free(surf_list);

G_debug(1, "Nviz_get_exag(): value = %f", exag);
return exag;
Expand Down

0 comments on commit d09b87c

Please sign in to comment.