changeset 7296 | 84069e62f29d |
parent 6481 | 85ad87daf4b0 |
child 7298 | 752e4c991b91 |
7295:ad5c855e13b1 | 7296:84069e62f29d |
---|---|
36 {} |
36 {} |
37 |
37 |
38 FORCEINLINE ~AutoPtrT() |
38 FORCEINLINE ~AutoPtrT() |
39 { |
39 { |
40 if (m_p != NULL) { |
40 if (m_p != NULL) { |
41 delete m_p; |
41 T *p = m_p; |
42 m_p = NULL; |
42 m_p = NULL; |
43 delete p; |
|
43 } |
44 } |
44 } |
45 } |
45 |
46 |
46 /** give-up ownership and NULLify the raw pointer */ |
47 /** give-up ownership and NULLify the raw pointer */ |
47 FORCEINLINE T* Release() |
48 FORCEINLINE T* Release() |