Commit 3d1a0d0d 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 001b4759
......@@ -195,7 +195,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;
......@@ -204,8 +204,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