fixed bug in ptr in optflow.cu
authorAnatoly Baksheev <no@email>
Mon, 10 Oct 2011 09:37:08 +0000 (09:37 +0000)
committerAnatoly Baksheev <no@email>
Mon, 10 Oct 2011 09:37:08 +0000 (09:37 +0000)
modules/gpu/src/nvidia/NCVBroxOpticalFlow.cu

index 06d88ea..bd11432 100644 (file)
@@ -74,7 +74,7 @@ public:
     ~shared_ptr() { release(); }\r
     shared_ptr(const shared_ptr& ptr);\r
     shared_ptr& operator = (const shared_ptr& ptr);\r
-    void addref() { if( refcount ) refcount+=1; }\r
+    void addref() { if( refcount ) (*refcount)+=1; }\r
     void release();\r
     void delete_obj() { if( obj ) delete obj; }\r
     _Tp* operator -> () { return obj; }\r