-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Delete timeline causes crash on Windows #680
Comments
Maybe using deleteLater() instead |
Maybe this will prevent the crash, maybe not. The I found nothing in the Qt-Assistant about explicitly deleting a created QTimeLine, so doing nothing (i.e. removing the two lines of code mentioned above) is probably the better option. Better to have a (small) memory leak than an application crash. |
Are you able to reproduce the crash? Can you try out with deleteLater? |
I already tried it before my last comment: It does not happen with But as long as I can not find a hint in the documentation when to delete |
A debug session later: The line with Replacing it with So this works. Unfortunately I could not find any documentation on this ("How to delete safely a QTimeLine") . |
Thanks for testing! Maybe it can be handled as any other QObject and therefore deleteLater() works fine. Neverthless I wanna get rid of the memory instead of having a memory leakage. Can you make a pull request? |
delete-timeline-causes-crash-on-windows-Murmele#680
delete-timeline-causes-crash-on-windows-Murmele#680
…-on-windows-#680 Delete timeline causes crash on windows #680
fixed with #693 |
The following code line
in ui/RepoView.cpp:893 (same in ui/MainWindow.cpp:204) causes my private fork of Gittyup to crash on Windows. The
timeline
is accessed after deletion and has therefore invalid pointer values.Here is a short reproducer:
Fix: Remove these lines!
The text was updated successfully, but these errors were encountered: