summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2012-06-28 01:16:23 +0200
committerFrancisco Jerez <[email protected]>2012-07-01 15:37:30 +0200
commitc6bb41c28b2da269d5b692d1d0f4acbf3cdd4b5c (patch)
tree5f933ebd55bdf0b7062ada8462f4b864667d3a76 /src/gallium/state_trackers/clover
parentdb2b6ca504e5046697e3d9262cfd401b8a4971fd (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 <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r--src/gallium/state_trackers/clover/core/base.hpp3
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);
}