diff options
Diffstat (limited to 'src/scalepoint.c')
-rw-r--r-- | src/scalepoint.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/scalepoint.c b/src/scalepoint.c index 6995b85..0138e61 100644 --- a/src/scalepoint.c +++ b/src/scalepoint.c @@ -30,9 +30,11 @@ lilv_scale_point_new(LilvNode* value, LilvNode* label) void lilv_scale_point_free(LilvScalePoint* point) { - lilv_node_free(point->value); - lilv_node_free(point->label); - free(point); + if (point) { + lilv_node_free(point->value); + lilv_node_free(point->label); + free(point); + } } LILV_API |