Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / base / files / file_path_watcher_mac.cc
index 54ca46d..b21ba1d 100644 (file)
@@ -34,13 +34,13 @@ class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate {
   }
 
   virtual void Cancel() OVERRIDE {
-    if (impl_)
+    if (impl_.get())
       impl_->Cancel();
     set_cancelled();
   }
 
   virtual void CancelOnMessageLoopThread() OVERRIDE {
-    if (impl_)
+    if (impl_.get())
       impl_->Cancel();
     set_cancelled();
   }