From e7e0da0153da0bc680d9352f5483f688d61f1cbe Mon Sep 17 00:00:00 2001
From: Vladislav Vinogradov <vlad.vinogradov@itseez.com>
Date: Tue, 23 Dec 2014 11:19:11 +0300
Subject: [PATCH] fix GpuMat::swap method:

add swap instruction for allocator field
---
 modules/core/include/opencv2/core/cuda.inl.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/core/include/opencv2/core/cuda.inl.hpp b/modules/core/include/opencv2/core/cuda.inl.hpp
index 586d76e1d5..1285b1a23d 100644
--- a/modules/core/include/opencv2/core/cuda.inl.hpp
+++ b/modules/core/include/opencv2/core/cuda.inl.hpp
@@ -147,6 +147,7 @@ void GpuMat::swap(GpuMat& b)
     std::swap(datastart, b.datastart);
     std::swap(dataend, b.dataend);
     std::swap(refcount, b.refcount);
+    std::swap(allocator, b.allocator);
 }
 
 inline