diff --git a/mailnews/mime/src/mimedrft.cpp b/mailnews/mime/src/mimedrft.cpp index 8affb72c642b..2d5f2449aa12 100644 --- a/mailnews/mime/src/mimedrft.cpp +++ b/mailnews/mime/src/mimedrft.cpp @@ -1878,7 +1878,7 @@ mime_bridge_create_draft_stream( return nsnull; } - mdd->options->url = mdd->url_name; + mdd->options->url = nsCRT::strdup(mdd->url_name); mdd->options->format_out = format_out; // output format mdd->options->decompose_file_p = PR_TRUE; /* new field in MimeDisplayOptions */ mdd->options->stream_closure = mdd;