Bug 1272203 (part 3) - Use NotNull in nsContentUtils::GetSurfaceData(). r=froydnj.
This might not look compelling in isolation, but this use of NotNull would have prevented the null dereference crash in bug 1268721.
This commit is contained in:
@@ -990,7 +990,7 @@ PuppetWidget::SetCursor(imgIContainer* aCursor,
|
||||
size_t length;
|
||||
int32_t stride;
|
||||
mozilla::UniquePtr<char[]> surfaceData =
|
||||
nsContentUtils::GetSurfaceData(dataSurface, &length, &stride);
|
||||
nsContentUtils::GetSurfaceData(WrapNotNull(dataSurface), &length, &stride);
|
||||
|
||||
nsDependentCString cursorData(surfaceData.get(), length);
|
||||
mozilla::gfx::IntSize size = dataSurface->GetSize();
|
||||
|
||||
Reference in New Issue
Block a user