diff options
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index 710ae97e4dc..de12257421d 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -369,6 +369,7 @@ static Image *rna_Main_images_load(Main *bmain, ReportList *reports, const char errno ? strerror(errno) : TIP_("unsupported image format")); } + id_us_min((ID *)ima); return ima; } static void rna_Main_images_remove(Main *bmain, ReportList *reports, PointerRNA *image_ptr) @@ -457,6 +458,7 @@ static VFont *rna_Main_fonts_load(Main *bmain, ReportList *reports, const char * BKE_reportf(reports, RPT_ERROR, "Cannot read '%s': %s", filepath, errno ? strerror(errno) : TIP_("unsupported font format")); + id_us_min((ID *)font); return font; } @@ -710,6 +712,7 @@ static MovieClip *rna_Main_movieclip_load(Main *bmain, ReportList *reports, cons BKE_reportf(reports, RPT_ERROR, "Cannot read '%s': %s", filepath, errno ? strerror(errno) : TIP_("unable to load movie clip")); + id_us_min((ID *)clip); return clip; } |