summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/DeutscheBahn.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-12-14 19:06:40 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-12-14 19:06:40 +0100
commit57a496a1deb1d82fb34a62b066c9ba47cf38bad1 (patch)
tree0246899d9c010c7af4b831e1fd3eadc18d94b88c /lib/Travel/Status/DE/DeutscheBahn.pm
parent8af2aecb4a1e5d3ba711d5e1b6193bfbffb74773 (diff)
Journey: Do not weaken hafas reference in stop items
The Stop constructor is called lazily and must have access to a hafas reference for its add_message function and strptime_obj key. If the hafas object goes out of scope before Journey->route is called, those may have been garbage-collected already. Apart from that, the weaken call was useless, since a Stop object does not store the hafas reference provided in its constructor. So, as soon as Journey->route is called, the hafas references in @{$journey->{route}} go out of scope anyways.
Diffstat (limited to 'lib/Travel/Status/DE/DeutscheBahn.pm')
0 files changed, 0 insertions, 0 deletions