diff --git a/engine/src/flutter/shell/platform/android/android_shell_holder.h b/engine/src/flutter/shell/platform/android/android_shell_holder.h index 6d123970fc8..ce966ebb6da 100644 --- a/engine/src/flutter/shell/platform/android/android_shell_holder.h +++ b/engine/src/flutter/shell/platform/android/android_shell_holder.h @@ -52,7 +52,7 @@ class AndroidShellHolder { std::unique_ptr shell_; bool is_valid_ = false; pthread_key_t thread_destruct_key_; - uint64_t next_pointer_flow_id_; + uint64_t next_pointer_flow_id_ = 0; static void ThreadDestructCallback(void* value); diff --git a/engine/src/flutter/shell/platform/embedder/embedder_engine.h b/engine/src/flutter/shell/platform/embedder/embedder_engine.h index 124f829fd19..ab962066ea0 100644 --- a/engine/src/flutter/shell/platform/embedder/embedder_engine.h +++ b/engine/src/flutter/shell/platform/embedder/embedder_engine.h @@ -75,7 +75,7 @@ class EmbedderEngine { const EmbedderExternalTextureGL::ExternalTextureCallback external_texture_callback_; bool is_valid_ = false; - uint64_t next_pointer_flow_id_; + uint64_t next_pointer_flow_id_ = 0; FML_DISALLOW_COPY_AND_ASSIGN(EmbedderEngine); };