summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hatch <Jeff.Hatch@multitech.com>2017-04-18 14:56:23 -0500
committerJeff Hatch <Jeff.Hatch@multitech.com>2017-04-18 14:56:23 -0500
commit0262799be465d36e0b31b9a2af1a9cc709e5ef48 (patch)
tree19b997304957a171b9ebb821c26cdc4a1ef82a5c
parent994c50e43c5a8169881a6529411cd9e92991bfd1 (diff)
downloadlibmts-0.5.tar.gz
libmts-0.5.tar.bz2
libmts-0.5.zip
Fix crash caused by SharedPtr constructor not initializing m_eType0.5
-rw-r--r--include/mts/MTS_SharedPtr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mts/MTS_SharedPtr.h b/include/mts/MTS_SharedPtr.h
index 0fd670e..84e26df 100644
--- a/include/mts/MTS_SharedPtr.h
+++ b/include/mts/MTS_SharedPtr.h
@@ -73,7 +73,7 @@ namespace MTS {
}
template<class T> SharedPtr<T>::SharedPtr(const SharedPtr<T>& other)
- : m_pObj(other.m_pObj), m_pReferences(other.m_pReferences) {
+ : m_pObj(other.m_pObj), m_pReferences(other.m_pReferences), m_eType(other.m_eType) {
*(m_pReferences) += 1;
}