Opened 15 years ago
Closed 15 years ago
#6782 closed patch (fixed)
MythWeather only allows one location/source per screen type.
Reported by: | Owned by: | paulh | |
---|---|---|---|
Priority: | minor | Milestone: | 0.22 |
Component: | Plugin - MythWeather | Version: | head |
Severity: | medium | Keywords: | MythWeather |
Cc: | Ticket locked: | no |
Description
On the trunk MythWeather? is only allowing one location/source per screen type.
If you add two or more screens of the same type, MythWeather? works correctly until you exit MythWeather? and reenter. When you reenter all screens that have the same type contain data for the screen with the greatest draw order.
This is caused because of the way the 'ScreenListInfo?' object is created and accessed.
Using a copy constructor when loading the screen data instead of pointer assignment fixes the problem.
Attachments (2)
Change History (7)
Changed 15 years ago by
Attachment: | weather_screens.patch added |
---|
comment:1 Changed 15 years ago by
Owner: | changed from Isaac Richards to paulh |
---|---|
Status: | new → assigned |
comment:2 Changed 15 years ago by
Marc, while your patch does fix the issue I haven't applied it yet because there's a small problem of it leaking memory. The copies of the ScreenListInfo?'s you are creating are never freed. Any chance you could fix that?
comment:3 Changed 15 years ago by
Yeah I did notice that after I submitted the patch, but got side tracked hunting down some other memory leaks in MythWeather?. I'll update the patch and create a new ticket for some other leaks I found.
Changed 15 years ago by
Attachment: | weather_screens.2.patch added |
---|
Updated patch without the memory leak.
comment:4 Changed 15 years ago by
I created ticket #6856 for the broader memory leak issues with MythWeather? and attached a patch.
comment:5 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [21443]) Fix a problem in MythWeather? were it would only allow one location/source per screen type to be set. Fixes #6782.
Also fixes several memory leaks. Fixes #6856.
Patch by Marc Alban.
Patch to fix how MythWeather? handles multiple screens of the same type.