[Kstars-devel] segfault in LocationDialog::LocationDialog since rev 1043608
Khudyakov Alexey
alexey.skladnoy at gmail.com
Fri Nov 6 20:01:08 CET 2009
В сообщении от 06 ноября 2009 20:45:54 Lukas Middendorf написал:
> I'm experiencing segfaults when I try to open "Set Geographic Location"
> since revision
>
Thank you for pointing this out. Will fix it tomorrow.
>
> If I change back lines 49 and 50
> QMap<QString, TimeZoneRule>::Iterator it = data->getRulebook().begin();
> QMap<QString, TimeZoneRule>::Iterator itEnd =
> data->getRulebook().end();
>
> to what they were before r1043608, I do not see the crash.
And it shouldn't. It's my mistake. Iterators are created for temporary objects
which are destroyed immediately after. So iterators are pointing into nowhere.
More information about the Kstars-devel
mailing list