Skip to content

Commit a48249f

Browse files
committed
Removes call to std::unique_ptr::release that discards the returned pointer. This caused a leak when a Renderable which already has an image loaded tries to load an image, but fails to do so.
1 parent 3da0fb4 commit a48249f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

olcPixelGameEngine.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2147,7 +2147,6 @@ namespace olc
21472147
}
21482148
else
21492149
{
2150-
pSprite.release();
21512150
pSprite = nullptr;
21522151
return olc::rcode::NO_FILE;
21532152
}

0 commit comments

Comments
 (0)