diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/content.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/content.c b/content/content.c index 253caea16..af9850145 100644 --- a/content/content.c +++ b/content/content.c @@ -145,7 +145,7 @@ void content_set_type(struct content *c, content_type type, char* mime_type) assert(type < CONTENT_UNKNOWN); LOG(("content %s, type %i", c->url, type)); c->type = type; - c->mime_type = mime_type; + c->mime_type = strdup(mime_type); c->status = CONTENT_STATUS_LOADING; content_broadcast(c, CONTENT_MSG_LOADING, 0); handler_map[type].create(c); |