diff options
Diffstat (limited to 'src/search.cpp')
| -rw-r--r-- | src/search.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/search.cpp b/src/search.cpp index dfb96b2..2a7d5d6 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -359,6 +359,7 @@ finish_early: } void ts_destroy_result(ts_search_result* result) { + if (result == NULL) return; ts_memory_bucket_destroy(&result->memory); ts_array_destroy(&result->files); ts_array_destroy(&result->matches); |
