plug leaking URL in Icon_GetUrlExitRoutine. r:hyatt

This commit is contained in:
danm%netscape.com 1998-07-21 21:37:45 +00:00
parent 1b7aa79e95
commit bbff3eec74

View File

@ -171,6 +171,13 @@ void Icon_GetUrlExitRoutine(URL_Struct *pUrl, int iStatus, MWContext *pContext)
theImage->CompleteCallback();
}
}
// standard free-a-URL-with-Windows-DDE-gunk mechanism:
if (NCAPIDATA(pUrl))
NCAPIDATA(pUrl)->EndProgress();
if (!NCAPIDATA(pUrl) || NCAPIDATA(pUrl)->CanFreeUrl()) {
FEU_DeleteUrlData(pUrl, NULL);
NET_FreeURLStruct(pUrl);
}
}
static BOOL IsImageMimeType(const CString& theFormat)