srd: clear objects after final decref, so it doesn't happen twice