]> git.sur5r.net Git - i3/i3/commitdiff
Merge pull request #3680 from bobnye/next
authorOrestis <orestisf1993@gmail.com>
Thu, 11 Apr 2019 07:29:43 +0000 (10:29 +0300)
committerGitHub <noreply@github.com>
Thu, 11 Apr 2019 07:29:43 +0000 (10:29 +0300)
Fix memory leak

Fixes #3621

libi3/font.c

index e16ce85e7294657d948a7ede3dd9cec581028d8e..32744c0b7291d1ffe8e2724dc2caa56668906789 100644 (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;
     }