mirror of https://github.com/CGAL/cgal
Fix segmentation fault in destructor of Handle_for_virtual.h
This commit is contained in:
parent
dffa89b2cd
commit
2ceedcfe81
|
|
@ -79,6 +79,7 @@ class Handle_for_virtual
|
|||
|
||||
~Handle_for_virtual()
|
||||
{
|
||||
if(!ptr) return;
|
||||
ptr->remove_reference();
|
||||
if ( !ptr->is_referenced() )
|
||||
delete ptr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue