Fix refcounting and cut & paste error (?) in last checkin.
This should go onto release23-maint, too.
M
Michael W. Hudson committed
68debc935b01b55ab4daf4032131101f86dc750e
Parent: 0fd54d8
This should go onto release23-maint, too.