do not store a pointer to a temporary object
Merge pull request #32 from jmakovicka/fix-routing-segv

do not store a pointer to a temporary object