]> git.sur5r.net Git - i3/i3/commitdiff
Fix memory leak 3680/head
authorJeremy Klotz <jtklotz77@gmail.com>
Wed, 10 Apr 2019 23:56:30 +0000 (19:56 -0400)
committerJeremy Klotz <jtklotz77@gmail.com>
Wed, 10 Apr 2019 23:56:30 +0000 (19:56 -0400)
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;
     }