res_sorcery_memory_cache.c: Shutdown in a less crash potential order.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 1 Oct 2015 19:27:34 +0000 (14:27 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 1 Oct 2015 22:28:23 +0000 (17:28 -0500)
commit6554a3b25e7dbfd50d34bda244aa08ce37187707
tree4fd5a9bb48422fed076933cf22038854dff60a4e
parent359394cc2948d394fce0dec339ce3454d0f51a03
res_sorcery_memory_cache.c: Shutdown in a less crash potential order.

Basically you should shutdown in the opposite order of how you setup since
later setup pieces likely depend on earlier setup pieces.  e.g.,
Registering your external API with the rest of the system should be the
last thing setup and the first thing unregistered during shutdown.

Change-Id: I5715765b723100c8d3c2642e9e72cc7ad5ad115e
res/res_sorcery_memory_cache.c