smbprovider: Make dtor of DepthFirstIterator virtual
This change makes the destructor of DepthFirstIterator
virtual so that derived classes are properly destroyed.
BUG=chromium:757625
TEST=none
Change-Id: Ib12989d63cf610e8ee373366de13ccf782c59846
Reviewed-on: https://chromium-review.googlesource.com/1123256
Commit-Ready: Bailey Berro <baileyberro@chromium.org>
Tested-by: Bailey Berro <baileyberro@chromium.org>
Reviewed-by: Zentaro Kavanagh <zentaro@chromium.org>
diff --git a/smbprovider/iterator/depth_first_iterator.h b/smbprovider/iterator/depth_first_iterator.h
index d3a1f10..189c1bb 100644
--- a/smbprovider/iterator/depth_first_iterator.h
+++ b/smbprovider/iterator/depth_first_iterator.h
@@ -40,7 +40,7 @@
DepthFirstIterator(const std::string& dir_path,
SambaInterface* samba_interface);
- ~DepthFirstIterator() = default;
+ virtual ~DepthFirstIterator() = default;
// Either OnPop() or OnPush() should be overridden to set |current_| to
// |entry| in order to achieve a Postorder or Preorder traversal. Without an