agent: Verify the source before dereferencing the pointer
authorOlivier Crête <olivier.crete@collabora.com>
Tue, 20 Apr 2021 19:09:11 +0000 (15:09 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Tue, 20 Apr 2021 19:09:11 +0000 (15:09 -0400)
commit8ccac4b04759edaecead7470e28865aff8066921
treec1d4dafea64192bf129fae135847b45b524fd876
parenta3f535669de74ba707fbd11c268ac04e60564a65
agent: Verify the source before dereferencing the pointer

The reason is that the component object could have been destroyed in the
mean time.
agent/agent.c
agent/component.c