diff --git a/devices/floppy/floppyimg.cpp b/devices/floppy/floppyimg.cpp index 4e0d3cf..b0ad02f 100644 --- a/devices/floppy/floppyimg.cpp +++ b/devices/floppy/floppyimg.cpp @@ -311,7 +311,7 @@ FloppyImgConverter* open_floppy_image(std::string& img_path) fconv = new RawFloppyImg(img_path); } - if (fconv->calc_phys_params()) { + if (fconv && fconv->calc_phys_params()) { delete fconv; return nullptr; }