diff --git a/dune/xt/grid/walker/apply-on.hh b/dune/xt/grid/walker/apply-on.hh
index aee78734847ad1f0b8abe1e4c744d2f257b12022..3f95ddc34c27867c70d6778ad9b58f0e69b2b56c 100644
--- a/dune/xt/grid/walker/apply-on.hh
+++ b/dune/xt/grid/walker/apply-on.hh
@@ -355,9 +355,10 @@ public:
   /**
    * \attention Takes ownership of boundary_type, do not delete manually!
    */
-  explicit CustomBoundaryIntersections(const BoundaryInfo<IntersectionType>& boundary_info, BoundaryType* boundary_type)
+  explicit CustomBoundaryIntersections(const BoundaryInfo<IntersectionType>& boundary_info,
+                                       BoundaryType*&& boundary_type)
     : boundary_info_(boundary_info)
-    , boundary_type_(boundary_type)
+    , boundary_type_(std::move(boundary_type))
   {
   }