summaryrefslogtreecommitdiff
path: root/src/dged/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dged/buffer.c')
-rw-r--r--src/dged/buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dged/buffer.c b/src/dged/buffer.c
index d25297f..ab86dc6 100644
--- a/src/dged/buffer.c
+++ b/src/dged/buffer.c
@@ -837,6 +837,9 @@ void buffer_find(struct buffer *buffer, const char *pattern,
*matches = VEC_ENTRIES(&data.matches);
*nmatches = VEC_SIZE(&data.matches);
+
+ VEC_DISOWN_ENTRIES(&data.matches);
+ VEC_DESTROY(&data.matches);
}
struct location buffer_copy(struct buffer *buffer, struct region region) {