New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when deleting parent widget before the subwidget #346
Comments
You have somewhere/something where this is happening right? |
spectacle-analyzer in remark: this would never be a problem is dgl took care of widget ownerships by itself |
can you be more clear on your latest point? |
wouldnt this be solved by a simple |
To elaborate, the problem is that it has 3 levels of widgets.
I'm pretty sure it doesn't, just clears the children array. (which are raw pointers) |
ok but then the owning part makes sense. it doesnt make sense to have to delete the child windows manually. btw, comparing to old DPF is not very helpful, old DPF didn't do a couple of things right. |
Using DPF 1d756d6 from develop,
in the case of a parent subwidget which has other subwidgets as children, deleting the parent leaves the children having a dangling
parentWidget
pointer.The crash happens because of invalid access in
SubWidget::PrivateData
dtor.parentWidget->pData->subWidgets.remove(self);
The text was updated successfully, but these errors were encountered: