diff options
author | David Robillard <d@drobilla.net> | 2018-07-22 12:48:37 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-07-22 12:48:37 +0200 |
commit | dbd784ed8ce745badbe71b5ae898b9e5b502c968 (patch) | |
tree | a85b650cbd2ac07a54699f83d537f3164418d617 | |
parent | e0b3fb3a9722c404da5b374957ebc4f1c941867e (diff) | |
download | sord-dbd784ed8ce745badbe71b5ae898b9e5b502c968.tar.gz sord-dbd784ed8ce745badbe71b5ae898b9e5b502c968.tar.bz2 sord-dbd784ed8ce745badbe71b5ae898b9e5b502c968.zip |
Use serd_free
-rw-r--r-- | sord/sordmm.hpp | 6 | ||||
-rw-r--r-- | wscript | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp index fdc9c59..ee33289 100644 --- a/sord/sordmm.hpp +++ b/sord/sordmm.hpp @@ -522,7 +522,7 @@ Model::load_file(SerdEnv* env, SerdReader* reader = sord_new_reader(_c_obj, env, syntax, NULL); serd_reader_read_file(reader, path); serd_reader_free(reader); - free(path); + serd_free(path); } inline SerdStatus @@ -537,10 +537,10 @@ Model::write_to_file(const std::string& uri, SerdSyntax syntax, SerdStyle style) FILE* const fd = fopen((const char*)path, "w"); if (!fd) { fprintf(stderr, "Failed to open file %s\n", path); - free(path); + serd_free(path); return SERD_ERR_UNKNOWN; } - free(path); + serd_free(path); SerdURI base_uri = SERD_URI_NULL; if (serd_uri_parse((const uint8_t*)uri.c_str(), &base_uri)) { @@ -56,7 +56,7 @@ def configure(conf): Options.options.static_progs) autowaf.check_pkg(conf, 'serd-0', uselib_store='SERD', - atleast_version='0.22.4', mandatory=True) + atleast_version='0.29.4', mandatory=True) autowaf.check_pkg(conf, 'libpcre', uselib_store='PCRE', mandatory=False) if conf.env.HAVE_PCRE: |