Fwd: Moved runner "Amarok" to kdereview
Albert Astals Cid
aacid at kde.org
Sun Oct 18 19:50:14 BST 2009
A Diumenge, 18 d'octubre de 2009, Jan Gerrit Marker va escriure:
> Am Sonntag 18 Oktober 2009 16:30:59 schrieb Albert Astals Cid:
> > I see
> > amarokrunner_config.cpp:77: warning: taking address of temporary
> > that should be fixed as those warnings are pretty serious
>
> Novice question: why are they serious?
> I fixed both.
The thing is that you have a temporary object, that will be automatically
destructed and you are getting the address that points to it, so the pointer
will "almost immediately" point to something that has been automatically
destructed, so you'll access invalid memory.
Albert
More information about the kde-core-devel
mailing list