Skip to content

Commit

Permalink
Invoke deferred invalidation callback before destroying it. (flutter#…
Browse files Browse the repository at this point in the history
…3734)

If it is not invoked, it triggers a fatal fidl runtime check.
  • Loading branch information
mikejurka authored Jun 5, 2017
1 parent a85610b commit b7dd2a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content_handler/runtime_holder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ RuntimeHolder::~RuntimeHolder() {
ftl::MakeCopyable([rasterizer = std::move(rasterizer_)](){
// Deletes rasterizer.
}));
if (deferred_invalidation_callback_) {
// Must be called before being destroyed.
deferred_invalidation_callback_();
}
}

void RuntimeHolder::Init(
Expand Down

0 comments on commit b7dd2a3

Please sign in to comment.