Bug 180578 nsImageBoxFrame::UpdateLoadFlags doesn't null check loader

r=biesi sr=bz
This commit is contained in:
timeless%mozdev.org 2002-11-20 03:58:36 +00:00
parent e7bf2cef05
commit a98d9573a8

View File

@ -451,6 +451,7 @@ nsImageBoxFrame::UpdateImage(nsIPresContext* aPresContext, PRBool& aResize)
nsresult rv;
nsCOMPtr<imgILoader> il(do_GetService("@mozilla.org/image/loader;1", &rv));
if (NS_FAILED(rv)) return;
nsCOMPtr<nsILoadGroup> loadGroup;
GetLoadGroup(aPresContext, getter_AddRefs(loadGroup));