Fix a bug when pushing pointers of arguments into std::vector.
authorpeng xiao <hisenxpress@gmail.com>
Tue, 28 May 2013 09:27:55 +0000 (17:27 +0800)
committerpeng xiao <hisenxpress@gmail.com>
Tue, 28 May 2013 09:27:55 +0000 (17:27 +0800)
commit1d0c283508df92939709eaa6f99f626f3bfefa4a
tree2eb9fbbd54c16ca59cdcb2554fcc1a709332224c
parent324cafdda68bdc5cee73c673a904a1f681801572
Fix a bug when pushing pointers of arguments into std::vector.
When argument pointers pushed into an vector and the pointers point to
address on stack, we need to make sure they are valid until kernels are
successfully flushed onto the queue.
modules/ocl/src/arithm.cpp
modules/ocl/src/imgproc.cpp