diff options
author | David Robillard <d@drobilla.net> | 2011-12-25 07:09:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-25 07:09:29 +0000 |
commit | f3c95977f6c71b936e98f41c321265835c4fd623 (patch) | |
tree | ab275f04a3dd592c5572687230ba25f422359a36 /src/serd_internal.h | |
parent | b2effabfc5d02bab56bae00e7aa138a42bd7d3b6 (diff) | |
download | serd-f3c95977f6c71b936e98f41c321265835c4fd623.tar.gz serd-f3c95977f6c71b936e98f41c321265835c4fd623.tar.bz2 serd-f3c95977f6c71b936e98f41c321265835c4fd623.zip |
Near 100% branch coverage.
git-svn-id: http://svn.drobilla.net/serd/trunk@277 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r-- | src/serd_internal.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h index 39f8d503..d81d0b34 100644 --- a/src/serd_internal.h +++ b/src/serd_internal.h @@ -157,10 +157,9 @@ serd_bulk_sink_flush(SerdBulkSink* bsink) static inline void serd_bulk_sink_free(SerdBulkSink* bsink) { - if (bsink) { - serd_bulk_sink_flush(bsink); - free(bsink->buf); - } + serd_bulk_sink_flush(bsink); + free(bsink->buf); + bsink->buf = NULL; } static inline size_t |