diff options
author | Francisco Jerez <currojerez@riseup.net> | 2012-06-28 01:16:23 +0200 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2012-07-01 15:37:30 +0200 |
commit | c6bb41c28b2da269d5b692d1d0f4acbf3cdd4b5c (patch) | |
tree | 5f933ebd55bdf0b7062ada8462f4b864667d3a76 | |
parent | db2b6ca504e5046697e3d9262cfd401b8a4971fd (diff) |
clover: Define non-templated copy constructor for clover::ref_ptr.
The templated copy constructor doesn't prevent the compiler from
emitting a default copy constructor, which leads to inconsistent
memory handling and was reported to cause segfaults when doing event
manipulation.
Reported-by: Tom Stellard <thomas.stellard@amd.com>
-rw-r--r-- | src/gallium/state_trackers/clover/core/base.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/clover/core/base.hpp b/src/gallium/state_trackers/clover/core/base.hpp index 19053f39235..2a2e26a141a 100644 --- a/src/gallium/state_trackers/clover/core/base.hpp +++ b/src/gallium/state_trackers/clover/core/base.hpp @@ -88,8 +88,7 @@ namespace clover { reset(q); } - template<typename S> - ref_ptr(const ref_ptr<S> &ref) : p(NULL) { + ref_ptr(const ref_ptr<T> &ref) : p(NULL) { reset(ref.p); } |