mozilla/r2d2b2g — pull request #785 by brendandahl (2013-08-09 23:03:30+00:00)
Title: Fix message callback index.

The wrong index was being stored for the callbacks since push() returns the new length. Callbacks were still getting called since it loops over all the callbacks, but they weren't be freed correctly and once() callbacks could possibly be called multiple times.