Bug 839447 - Part 3: Add a missing addref; r=mounir