Error listener not cleared in 1.1.0-rc1, finish not clearing error listener.

13 views
Skip to first unread message

Daya Nand

unread,
Oct 31, 2017, 9:49:55 AM10/31/17
to Volley Users
Hi Team,

I am using volley 1.1.0-rc1 which is resulting in memory leak as in case of request with error, mErrorListener is not cleared.
On exploring i found that com.android.volley.Request#finish method doesn't clears mErrorListener, and doesn't provide any option for custom request to clear its listener.

by adding onFinish() inside finish, where onFinish cleared mErrorListener. Which will help custom request to clear mListeners.

Currently i am achieving same functionality by adding request finish listener in request queue, but its a hack because to clear mErrorListener i need to call cancel as mErrorListener is private.




Jeff Davidson

unread,
Oct 31, 2017, 1:33:15 PM10/31/17
to Daya Nand, Volley Users
It looks like you also filed https://github.com/google/volley/issues/114 so we can follow up there.

--
You received this message because you are subscribed to the Google Groups "Volley Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to volley-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages