Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f4ca3e7

Browse files
authored
[fuchsia] Fix shader warmup. (#37662)
Before, ~VulkanSurface() invokes a potentially empty std::function. Now, checks if it is empty before invoking it.
1 parent 7a5bc91 commit f4ca3e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/platform/fuchsia/flutter/vulkan_surface.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ VulkanSurface::~VulkanSurface() {
184184
if (buffer_id_) {
185185
session_->DeregisterBufferCollection(buffer_id_);
186186
}
187-
} else {
187+
} else if (release_image_callback_) {
188188
release_image_callback_();
189189
}
190190
wait_.Cancel();

0 commit comments

Comments
 (0)