iOS memory leak

I face a weird memory problem when starting/stopping publishing. Every time when i flip the camera, I reinit constraints with appropriate "setDeviceID" value. When not publishing, this reinit works as expected, but as soon as "RTCEAGLVideoView" is used in a "FPWCSApi2Stream", the "RTCEAGLVideoView" is not released. I tried "nil-ing" all possible variables, like "RTCEAGLVideoView", "FPWCSApi2Stream", and even "FPWCSApi2Session" but to no avail. "FPWCSApi2 releaseLocalMedia" works as expected but memory is still not released, circa 40mb every time a stream is published. Is there an extra method of "FPWCSApi2Stream" to release variables?
 

Max

Administrator
Staff member
Good day.
Please clarify, what XCode version do you use and what target platform do you build for?
We raised internal ticket WCS-2560 to check this.
 

Max

Administrator
Staff member
Good day.
After major iOS SDK version update, we fixed the issue in build 2.6.3. Please update and check. Please also read here about iOS SDK version differences.
 
Top