diff options
Diffstat (limited to 'ide-document-link.c')
-rw-r--r-- | ide-document-link.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ide-document-link.c b/ide-document-link.c index 5de107f..0c2d8cd 100644 --- a/ide-document-link.c +++ b/ide-document-link.c @@ -17,13 +17,7 @@ void document_link_init(Ted *ted) { ted->document_links = calloc(1, sizeof *ted->document_links); } -void document_link_quit(Ted *ted) { - document_link_clear(ted); - free(ted->document_links); - ted->document_links = NULL; -} - -void document_link_clear(Ted *ted) { +static void document_link_clear(Ted *ted) { DocumentLinks *dl = ted->document_links; arr_foreach_ptr(dl->links, DocumentLink, l) { free(l->target); @@ -33,6 +27,12 @@ void document_link_clear(Ted *ted) { dl->requested_document = 0; } +void document_link_quit(Ted *ted) { + document_link_clear(ted); + free(ted->document_links); + ted->document_links = NULL; +} + static bool document_link_activation_key_down(Ted *ted) { return ted_is_ctrl_down(ted); } |