Skip to content

Commit

Permalink
Fix an alloc-dealloc mismatch in tile links handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoureaux committed Mar 24, 2024
1 parent ad20326 commit e6d5e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/views/view_map_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2355,7 +2355,7 @@ static struct link_mark *link_mark_new(enum text_link_type type, int id,
/**
Remove a link mark.
*/
static void link_mark_destroy(struct link_mark *pmark) { free(pmark); }
static void link_mark_destroy(struct link_mark *pmark) { delete pmark; }

/**
Returns the location of the pointed mark.
Expand Down

0 comments on commit e6d5e3c

Please sign in to comment.