diff --git a/source/blender/editors/space_image/image_ops.cc b/source/blender/editors/space_image/image_ops.cc index 7a9eb97b0c2..4f2cd284be4 100644 --- a/source/blender/editors/space_image/image_ops.cc +++ b/source/blender/editors/space_image/image_ops.cc @@ -1285,7 +1285,7 @@ static Image *image_open_single(Main *bmain, if (!ima) { if (op->customdata) { - MEM_freeN(op->customdata); + MEM_delete(static_cast(op->customdata)); } BKE_reportf(op->reports, RPT_ERROR,