Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3110)

Unified Diff: base/third_party/xdg_mime/free_pointer_later.patch

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/third_party/xdg_mime/compile.patch ('k') | base/third_party/xdg_mime/xdgmime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/third_party/xdg_mime/free_pointer_later.patch
diff --git a/base/third_party/xdg_mime/free_pointer_later.patch b/base/third_party/xdg_mime/free_pointer_later.patch
deleted file mode 100644
index 76687610d528554d072992386ceab33ae5548d7e..0000000000000000000000000000000000000000
--- a/base/third_party/xdg_mime/free_pointer_later.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff --git a/base/third_party/xdg_mime/xdgmime.c b/base/third_party/xdg_mime/xdgmime.c
-index c7b16bb..6dc58c2 100644
---- a/base/third_party/xdg_mime/xdgmime.c
-+++ b/base/third_party/xdg_mime/xdgmime.c
-@@ -558,13 +558,13 @@ 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)
-- return mime_type;
-+ if (!mime_type)
-+ mime_type = _xdg_binary_or_text_fallback(data, bytes_read);
-
-- return _xdg_binary_or_text_fallback(data, bytes_read);
-+ free (data);
-+ return mime_type;
- }
-
- const char *
« no previous file with comments | « base/third_party/xdg_mime/compile.patch ('k') | base/third_party/xdg_mime/xdgmime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698