message: fix Mat_ release
diff: @@ -1625,6 +1625,15 @@ void Mat_<_Tp>::create(int _dims, const int* _sz)
  Mat::create(_dims, _sz, DataType<_Tp>::type);
  }
  +template<typename _Tp> inline
  +void Mat_<_Tp>::release()
  +{
  + Mat::release();
  +#ifdef _DEBUG
  + flags = (flags & ~CV_MAT_TYPE_MASK) | DataType<_Tp>::type;
  +#endif
  +}
  +
  template<typename _Tp> inline
  Mat_<_Tp> Mat_<_Tp>::cross(const Mat_& m) const
  {
  