From ca6d80857fa945044f782db8d94dc5ddd3017480 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Mon, 20 May 2019 16:52:16 -0700 Subject: [PATCH] Initialize next_pointer_flow_id_ to 0 (flutter/engine#9026) This member variable was added to three classes in #7807, but only initialized to 0 in one of them. Initialize to 0 in the other two. --- .../src/flutter/shell/platform/android/android_shell_holder.h | 2 +- engine/src/flutter/shell/platform/embedder/embedder_engine.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 6d123970fc..ce966ebb6d 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 124f829fd1..ab962066ea 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); };