branch | noai |
changeset 9512 | 36a53e169661 |
parent 6573 | 7624f942237f |
child 9601 | b499fdd106d5 |
9511:f767ad06e86b | 9512:36a53e169661 |
---|---|
34 {} |
34 {} |
35 |
35 |
36 FORCEINLINE ~AutoPtrT() |
36 FORCEINLINE ~AutoPtrT() |
37 { |
37 { |
38 if (m_p != NULL) { |
38 if (m_p != NULL) { |
39 delete m_p; |
39 T *p = m_p; |
40 m_p = NULL; |
40 m_p = NULL; |
41 delete p; |
|
41 } |
42 } |
42 } |
43 } |
43 |
44 |
44 /** give-up ownership and NULLify the raw pointer */ |
45 /** give-up ownership and NULLify the raw pointer */ |
45 FORCEINLINE T* Release() |
46 FORCEINLINE T* Release() |