Make the reload stasis message bump the ref count of its sub-object
authorMatthew Jordan <mjordan@digium.com>
Mon, 10 Jun 2013 22:38:04 +0000 (22:38 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 10 Jun 2013 22:38:04 +0000 (22:38 +0000)
commited85661f43ae5ea5cbca3055f64964964e79e845
treecf189ffe1fd539ea3f3f65c08bed25ff745e125f
parent75e7c3a8fa97957ee582f4553aafc4fa6977c25c
Make the reload stasis message bump the ref count of its sub-object

JSON objects are reference stealing. Hence, if you've RAII_VAR'd some
subobject and want to pack it into another JSON object, you have to bump
the reference count. Using the 'O' option during the pack will bump the
reference count for you.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/loader.c