Commit ee768d46 authored by Anatoly Baksheev's avatar Anatoly Baksheev

fixed bug in ptr in optflow.cu

parent ed749c4b
......@@ -74,7 +74,7 @@ public:
~shared_ptr() { release(); }
shared_ptr(const shared_ptr& ptr);
shared_ptr& operator = (const shared_ptr& ptr);
void addref() { if( refcount ) refcount+=1; }
void addref() { if( refcount ) (*refcount)+=1; }
void release();
void delete_obj() { if( obj ) delete obj; }
_Tp* operator -> () { return obj; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment