Merge "Fix memory leak in RenderThread::dumpGraphicsMemory."

This commit is contained in:
Treehugger Robot
2018-06-26 21:38:14 +00:00
committed by Gerrit Code Review

View File

@ -236,10 +236,8 @@ void RenderThread::dumpGraphicsMemory(int fd) {
break;
}
FILE *file = fdopen(fd, "a");
fprintf(file, "\n%s\n", cachesOutput.string());
fprintf(file, "\nPipeline=%s\n", pipeline.string());
fflush(file);
dprintf(fd, "\n%s\n", cachesOutput.string());
dprintf(fd, "\nPipeline=%s\n", pipeline.string());
}
Readback& RenderThread::readback() {