aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-20 19:08:09 +0000
committerDavid Robillard <d@drobilla.net>2011-01-20 19:08:09 +0000
commit57683c8352e4a545171f28047617df88a6d4c917 (patch)
treee46f7493647a9d95a627d403edcbe6cdf7d4e8da /src/serdi.c
parentf0c50e7461641d060c783e1f0fb1b74b3c175054 (diff)
downloadserd-57683c8352e4a545171f28047617df88a6d4c917.tar.gz
serd-57683c8352e4a545171f28047617df88a6d4c917.tar.bz2
serd-57683c8352e4a545171f28047617df88a6d4c917.zip
Add serd_string_free to API.
git-svn-id: http://svn.drobilla.net/serd/trunk@13 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 548f88e7..13fdb2af 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -60,7 +60,7 @@ event_base(void* handle,
}
// Replace the old base URI
- free(state->base_uri_str);
+ serd_string_free(state->base_uri_str);
state->base_uri_str = base_uri_str;
state->base_uri = base_uri;
@@ -85,7 +85,7 @@ event_prefix(void* handle,
SerdURI new_abs_uri;
SerdString* abs_uri_string = serd_string_new_from_uri(&abs_uri, &new_abs_uri);
serd_namespaces_add(state->ns, name, abs_uri_string);
- free(abs_uri_string);
+ serd_string_free(abs_uri_string);
} else {
serd_namespaces_add(state->ns, name, uri_string);
}
@@ -155,7 +155,7 @@ main(int argc, char** argv)
serd_reader_free(reader);
fclose(in_fd);
serd_namespaces_free(state.ns);
- free(state.base_uri_str);
+ serd_string_free(state.base_uri_str);
if (success) {
return 0;