mirror of https://github.com/CGAL/cgal
Fix a memory leak in Handle_with_policy:
A rep that points to another rep is like a handle So if such a rep gets deleted the reference counter must be decremented
This commit is contained in:
parent
06009bfc03
commit
d8da1137cc
|
|
@ -555,6 +555,7 @@ public:
|
|||
}
|
||||
} else {
|
||||
h.delete_rep( rep); // we have to delete the current rep
|
||||
tmp->remove_reference();
|
||||
}
|
||||
rep = tmp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue