Skip to content
Commit fe023a62 authored by Milian Wolff's avatar Milian Wolff
Browse files

Do not enforce TypePtr when calling AbstractType::indexed

When the type is _not_ in a TypePtr, but e.g. handled via a
unique_ptr, then this would potentially lead to double frees:

```
auto type = std::make_unique<SomeKDevelopType>();
type->indexed(); // creates TypePtr, destroys it, deletes the type
// type now holds on to a dangling pointer
// dtor of type would try to delete again, and crash
```
parent 56f5e658
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment