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.

https://bugzilla.gnome.org/show_bug.cgi?id=759200
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)
action = EPHY_DOWNLOAD_ACTION_OPEN;
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