| Index: base/third_party/xdg_mime/free_poiner_later.patch
|
| diff --git a/base/third_party/xdg_mime/free_poiner_later.patch b/base/third_party/xdg_mime/free_poiner_later.patch
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b4a2e733099eb30adbc614ec5275b31ced20ac6b
|
| --- /dev/null
|
| +++ b/base/third_party/xdg_mime/free_poiner_later.patch
|
| @@ -0,0 +1,24 @@
|
| +diff --git a/base/third_party/xdg_mime/xdgmime.c b/base/third_party/xdg_mime/xdgmime.c
|
| +index c7b16bb..032200f 100644
|
| +--- a/base/third_party/xdg_mime/xdgmime.c
|
| ++++ b/base/third_party/xdg_mime/xdgmime.c
|
| +@@ -558,13 +558,16 @@ xdg_mime_get_mime_type_for_file (const char *file_name,
|
| + mime_type = _xdg_mime_magic_lookup_data (global_magic, data, bytes_read, NULL,
|
| + mime_types, n);
|
| +
|
| +- free (data);
|
| + fclose (file);
|
| +
|
| +- if (mime_type)
|
| ++ if (mime_type) {
|
| ++ free (data);
|
| + return mime_type;
|
| ++ }
|
| +
|
| +- return _xdg_binary_or_text_fallback(data, bytes_read);
|
| ++ mime_type = _xdg_binary_or_text_fallback(data, bytes_read);
|
| ++ free (data);
|
| ++ return mime_type;
|
| + }
|
| +
|
| + const char *
|
|
|