smalloc: call callback if set on AllocDispose
authorTrevor Norris <trev.norris@gmail.com>
Fri, 5 Jul 2013 23:21:09 +0000 (16:21 -0700)
committerTrevor Norris <trev.norris@gmail.com>
Mon, 8 Jul 2013 18:09:09 +0000 (11:09 -0700)
commitead8e26b5bcafdbb978fcfc36853d4f88a9848b5
tree1e2d7a916380692b419bc9c2d98ccf57c3a93824
parentaa8c4a0766d4ae501433f0af5ec4d4d00300ea97
smalloc: call callback if set on AllocDispose

Fix bug where if dev passed a callback to Alloc then called AllocDispose
it wouldn't bother to pass the data to the callback and instead would
just free it.
src/smalloc.cc