Hi,
I have found an example in which an instance of IMediaStreamActionNotify is attached to a stream. In that code there is a code snippet like this:
public void onStreamDestroy(IMediaStream stream) {
IMediaStreamActionNotify actionNotify = null;
WMSProperties props = stream.getProperties();
synchronized(props)
{
actionNotify = (IMediaStreamActionNotify)stream.getProperties().get("streamActionNotifier");
}
if (actionNotify != null)
{
stream.removeClientListener(actionNotify);
}
}
Question: if the stream is going to be destroyed, is it really necessary to manually remove this listener? I have never seen any API where this was necessary in order to prevent memory leak. In the generated javadoc that is usually referred to as server side API documentation, I haven’t found any info about this.
Can you tell it to me? Thanks!