Commit 13875377 authored by Ting-Wei Lan's avatar Ting-Wei Lan
Browse files

downloads: Value returned by ephy_download_get_content_type() should not be freed

ephy_download_get_content_type() was modified to return an existing pointer
instead of a newly allocated string, so its return value should not be freed
by the caller.
parent 6a38d007
......@@ -153,7 +153,7 @@ ephy_download_get_content_type (EphyDownload *download)
static EphyDownloadActionType
decide_action_from_mime (EphyDownload *ephy_download)
char *content_type;
const char *content_type;
GAppInfo *helper_app = NULL;
EphyDownloadActionType action;
......@@ -162,8 +162,6 @@ decide_action_from_mime (EphyDownload *ephy_download)
helper_app = g_app_info_get_default_for_type (content_type, FALSE);
if (helper_app)
g_free (content_type);
/* Downloads that have no content_type, or no helper_app, are
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment