Initialize the embedder_ member data
authorCheng Zhao <zcbenz@gmail.com>
Mon, 18 Apr 2016 05:52:03 +0000 (14:52 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 18 Apr 2016 05:52:03 +0000 (14:52 +0900)
Otherwise it is going to be some random value and bite us.

atom/browser/api/atom_api_web_contents.cc

index abad4ad..64a76d5 100644 (file)
@@ -217,6 +217,7 @@ content::ServiceWorkerContext* GetServiceWorkerContext(
 
 WebContents::WebContents(content::WebContents* web_contents)
     : content::WebContentsObserver(web_contents),
+      embedder_(nullptr),
       type_(REMOTE),
       request_id_(0),
       background_throttling_(true) {