Skip to content

Commit 5fa71c8

Browse files
authored
[afterimage] prevent nullptr access (#21860)
Fixes crash reported in https://root-forum.cern.ch/t/timage-drawcircle-cause-core-dump/64784 Provide InitImage method which initialize image for painting Use it in all relevant places. Co-authored-by: ferdymercury <ferdymercury@users.noreply.github.com>
1 parent d84f3fd commit 5fa71c8

2 files changed

Lines changed: 91 additions & 192 deletions

File tree

graf2d/asimage/inc/TASImage.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class TASImage : public TImage {
7777
void MapQuality(EImageQuality &quality, UInt_t &asquality, Bool_t toas = kTRUE);
7878

7979
static Bool_t InitVisual();
80+
Bool_t InitImage(const char *caller);
8081

8182
public:
8283
TASImage();

0 commit comments

Comments
 (0)