diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-11-12 08:56:51 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-11-12 08:56:51 +0100 |
| commit | 768dcf2c11146d47f8a79a3d020e2cc0aa91c05b (patch) | |
| tree | f5977be591186bffcea467e194980d0f08733552 /src/Fl_Image_Surface.cxx | |
| parent | ce9ba4ba0879a71dc2375e7b21f109d47f35c531 (diff) | |
Fix: Potential NULL pointer dereference in Fl_Image_Surface c'tor (#834)
Diffstat (limited to 'src/Fl_Image_Surface.cxx')
| -rw-r--r-- | src/Fl_Image_Surface.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Image_Surface.cxx b/src/Fl_Image_Surface.cxx index d1a19c6ff..29c5bf145 100644 --- a/src/Fl_Image_Surface.cxx +++ b/src/Fl_Image_Surface.cxx @@ -38,7 +38,7 @@ Fl_Image_Surface::Fl_Image_Surface(int w, int h, int high_res, Fl_Offscreen off) : Fl_Widget_Surface(NULL) { platform_surface = Fl_Image_Surface_Driver::newImageSurfaceDriver(w, h, high_res, off); platform_surface->image_surface_ = this; - if (platform_surface) driver(platform_surface->driver()); + driver(platform_surface->driver()); } |
