Skip to content
Snippets Groups Projects
Commit 51420f18 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix potencial segfault

parent 6377ad70
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ public: ...@@ -21,7 +21,7 @@ public:
} }
   
cow_shared_ptr ( T * data ) { cow_shared_ptr ( T * data ) {
data->m_UseCount = 0; if(data) data->m_UseCount = 0;
attach ( data ); attach ( data );
} }
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment