Fix memory leak

next
Jeremy Klotz 2019-04-10 19:56:30 -04:00
parent 56bbc528d7
commit 58c808a961
1 changed files with 1 additions and 0 deletions

View File

@ -436,6 +436,7 @@ static int xcb_query_text_width(const xcb_char2b_t *text, size_t text_len) {
* a crash. Plus, the user will see the error in their log. */
fprintf(stderr, "Could not get text extents (X error code %d)\n",
error->error_code);
free(error);
return savedFont->specific.xcb.info->max_bounds.character_width * text_len;
}