Opened 17 years ago
Closed 17 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)
by , 17 years ago
| Attachment: | weather_screens.patch added |
|---|
comment:1 by , 17 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 17 years ago
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 by , 17 years ago
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.
comment:4 by , 17 years ago
I created ticket #6856 for the broader memory leak issues with MythWeather and attached a patch.
comment:5 by , 17 years ago
| 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.