diff options
-rw-r--r-- | NEWS | 7 | ||||
-rw-r--r-- | src/sratom.c | 6 | ||||
-rw-r--r-- | wscript | 2 |
3 files changed, 12 insertions, 3 deletions
@@ -1,3 +1,10 @@ +sratom (0.6.3) unstable; + + * Various minor code cleanups + * Make sratom_free() safe to call on NULL + + -- David Robillard <d@drobilla.net> Thu, 27 Dec 2018 14:17:06 -0500 + sratom (0.6.2) stable; * Various minor code cleanups diff --git a/src/sratom.c b/src/sratom.c index 7b00557..f3c7be9 100644 --- a/src/sratom.c +++ b/src/sratom.c @@ -97,8 +97,10 @@ sratom_new(LV2_URID_Map* map) void sratom_free(Sratom* sratom) { - serd_node_free(&sratom->base_uri); - free(sratom); + if (sratom) { + serd_node_free(&sratom->base_uri); + free(sratom); + } } void @@ -10,7 +10,7 @@ from waflib.extras import autowaf # major increment <=> incompatible changes # minor increment <=> compatible changes (additions) # micro increment <=> no interface changes -SRATOM_VERSION = '0.6.2' +SRATOM_VERSION = '0.6.3' SRATOM_MAJOR_VERSION = '0' # Mandatory waf variables |