mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix leak of the picture after tracing it to a file
This commit is contained in:
parent
70c98ff994
commit
fedda1d8df
@ -86,8 +86,9 @@ PaintContext::ScopedFrame::~ScopedFrame() {
|
||||
context_.endFrame(*this);
|
||||
|
||||
if (trace_file_name_.length() > 0) {
|
||||
auto picture = trace_recorder_->endRecordingAsPicture();
|
||||
SkPicture* picture = trace_recorder_->endRecordingAsPicture();
|
||||
SerializePicture(trace_file_name_.c_str(), picture);
|
||||
picture->unref();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user