mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
GPU: Correct some incorrect deallocations.
This commit is contained in:
parent
cd6be61d98
commit
4240fa3053
2 changed files with 2 additions and 2 deletions
|
@ -204,7 +204,7 @@ static std::string ReadShaderSrc(const std::string &filename) {
|
|||
return "";
|
||||
|
||||
std::string src(data, sz);
|
||||
free(data);
|
||||
delete[] data;
|
||||
return src;
|
||||
}
|
||||
|
||||
|
|
|
@ -383,7 +383,7 @@ static std::string ReadShaderSrc(const std::string &filename) {
|
|||
return "";
|
||||
|
||||
std::string src(data, sz);
|
||||
free(data);
|
||||
delete[] data;
|
||||
return src;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue