Don't delete FileAccess when it is null
This commit is contained in:
parent
f5a77f7bdd
commit
c1bba054e6
@ -118,7 +118,6 @@ RES ResourceFormatLoaderImage::load(const String &p_path, const String &p_origin
|
||||
if (r_error) {
|
||||
*r_error = ERR_CANT_OPEN;
|
||||
}
|
||||
memdelete(f);
|
||||
return RES();
|
||||
}
|
||||
|
||||
|
@ -730,7 +730,6 @@ RES ResourceFormatLoaderTheora::load(const String &p_path, const String &p_origi
|
||||
if (r_error) {
|
||||
*r_error = ERR_CANT_OPEN;
|
||||
}
|
||||
memdelete(f);
|
||||
return RES();
|
||||
}
|
||||
|
||||
|
@ -453,7 +453,6 @@ RES ResourceFormatLoaderWebm::load(const String &p_path, const String &p_origina
|
||||
if (r_error) {
|
||||
*r_error = ERR_CANT_OPEN;
|
||||
}
|
||||
memdelete(f);
|
||||
return RES();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user