segmentation fault when selecting a cinema in Showtimes View
mporsch opened this issue · 4 comments
mporsch commented
steps to reproduce:
- open Showtimes View
- select one cinema
- dwelve deep into the Movie Browse or Movie Views
- return to Showtimes View
- select a different cinema
spenap commented
This is the same one as issue #17 , so I would start investigating around how I created the QAbstractListModels.
mporsch commented
delete m_currentMovieListModel;
in
https://github.com/spenap/butaca/blob/master/src/theaterlistmodel.cpp#L114
seems to delete a resource that is still in use in the QML components. At least when commenting it out there are no more crashes.
spenap commented
Yes, I think I got to know that back then. That could be a good enough fix: a memory leak coming from there shouldn't get too big, as typically users would close the app every once in a while. And that's much better than an unexpected crash, so we can comment that delete out, and leave a comment pointing here.