1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

Image: Update return type of getPixelData to avoid dangling pointers

This commit is contained in:
reuk 2024-12-03 19:41:43 +00:00
parent 0be5ad1afc
commit dcca72484f
9 changed files with 22 additions and 23 deletions

View file

@ -2207,7 +2207,7 @@ void XWindowSystem::blitToWindow (::Window windowH, Image image, Rectangle<int>
{
jassert (windowH != 0);
auto* xbitmap = static_cast<XBitmapImage*> (image.getPixelData());
auto* xbitmap = static_cast<XBitmapImage*> (image.getPixelData().get());
xbitmap->blitToWindow (windowH,
destinationRect.getX(), destinationRect.getY(),