Skip to content

Commit

Permalink
Merge pull request #3680 from bobnye/next
Browse files Browse the repository at this point in the history
Fix memory leak

Fixes #3621
  • Loading branch information
orestisfl committed Apr 11, 2019
2 parents 56bbc52 + 58c808a commit a574346
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libi3/font.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit a574346

Please sign in to comment.