func_periodic_hook: add module ref counting
authorRussell Bryant <russell@russellbryant.com>
Sat, 12 Apr 2014 01:26:28 +0000 (01:26 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 12 Apr 2014 01:26:28 +0000 (01:26 +0000)
commit23329d07cf8107f3c2990b20f53e10f5487d60b0
treec7a53b05dc5d0b97a0adcd1dd12d1080e8bd475d
parent04429e5c399079cfc02aada5cae3fab3d37aba55
func_periodic_hook: add module ref counting

This module lacked necessary module ref count incrementing and decrementing
when used.  This patch adds it.  There's already a datastore used, so doing the
ref counting along with the lifetime of the datastore provides a convenient
place to do it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_periodic_hook.c