Lock or not to lock?

I’m still scratching my head about whether or not to lock an object. I am working on a plugin that creates class instances and stores them in a dynamic array. This plugin has a function to retrieve these instances. Before returning them to the application should I need to lock them or not?

Thanks for your light

if you get an object from an array, you get it with +1 reference count, so you can just return that.

Thanks Christian