Skip to content
Permalink
Browse files

Fix memory leak

  • Loading branch information...
jklotz77 committed Apr 10, 2019
1 parent 56bbc52 commit 58c808a961abd6408d37740138e3043eb8438d99
Showing with 1 addition and 0 deletions.
  1. +1 −0 libi3/font.c
@@ -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;
}

0 comments on commit 58c808a

Please sign in to comment.
You can’t perform that action at this time.