Correct recent error passing NULL to fclose

This commit is contained in:
2015-12-29 01:00:25 +11:00
parent 0ae2ade17a
commit 61d6fa92c5

View File

@@ -320,10 +320,11 @@ void *BLI_file_read_text_as_mem(const char *filepath, size_t pad_bytes, size_t *
}
*r_size = filelen_read;
}
finally:
fclose(fp);
fclose(fp);
}
return mem;
}
@@ -353,10 +354,11 @@ void *BLI_file_read_binary_as_mem(const char *filepath, size_t pad_bytes, size_t
}
*r_size = filelen_read;
}
finally:
fclose(fp);
fclose(fp);
}
return mem;
}