Opened 16 years ago
Closed 16 years ago
#4666 closed patch (fixed)
Leaking timers and deleteLater() for tv_play.cpp
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | unknown |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
While tracking down a QTimer related segfault in the frontend that occurs when exiting the player a I noticed the timers aren't being disconnected or deleted. (patch attached)
That lead to looking into the QT docs and the issues with signals and deleteLater(). The second patch implements deleteLater() for the TV class and changes all the users to use it instead of delete.
The deleteLater() patch is partly for review/feedback. Since I'm not sure it's absolutely required but it seems like the safer thing to do.
Attachments (2)
Change History (8)
Changed 16 years ago by
Attachment: | mythtv_tv_play_delete_timers.diff added |
---|
comment:1 Changed 16 years ago by
Milestone: | unknown → 0.21 |
---|---|
Owner: | changed from Isaac Richards to Janne Grunau |
Status: | new → accepted |
Does the deletion of the timers fix the segfault?
comment:2 Changed 16 years ago by
The segfault only happened rarely on exit and it hasn't happened in a while so I think it's fixed. I'm using both patches so I'm not sure exactly which of the patches did the job or if they are both needed.
I split the patch for submission because I thought the timer deletions were more likely to be correct and more easily reviewed/applied separately. I'm not completely sure I've done the deleteLater() stuff correctly though.
comment:3 Changed 16 years ago by
comment:4 Changed 16 years ago by
comment:5 Changed 16 years ago by
Milestone: | 0.21 → unknown |
---|---|
Owner: | Janne Grunau deleted |
Status: | accepted → new |
The TVPlay deleteLater patch has to wait for the release. I'm not even sure if it's needed
comment:6 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
delete timers in tv_play