зеркало из https://github.com/mozilla/pjs.git
#66867, "nsMsgNewsFolder::SetCachedNewsrcLine leaks". r=hwaara, sr=blizzard, a=asa. Original patch by Kevin Higgins.
This commit is contained in:
Родитель
08e6ef359c
Коммит
9f62bfa21b
|
@ -1551,6 +1551,8 @@ nsMsgNewsFolder::SetCachedNewsrcLine(const char *newsrcLine)
|
|||
{
|
||||
if (!newsrcLine) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
nsCRT::free(mCachedNewsrcLine);
|
||||
|
||||
mCachedNewsrcLine = nsCRT::strdup(newsrcLine);
|
||||
|
||||
if (!mCachedNewsrcLine) return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
|
Загрузка…
Ссылка в новой задаче