https://kotlinlang.org logo
#android
Title
# android
t

TarunY

06/28/2020, 7:11 PM
Hello guys, Leakcanary gives me the log as below. can someone please suggest me to resolve this.
b

bezrukov

06/28/2020, 8:49 PM
Seems you're subscribing to single (see onSuccess hint) without unsubscribing in onDestroy.
t

TarunY

06/29/2020, 3:36 AM
thanks for info. but i am still unclear can you please help me in the below code what actually went wrong. do i have to clear the list onDestroy() method when my fragment is destroyed?. i have used listener to get the response from api.
b

bezrukov

06/29/2020, 3:03 PM
do you dispose your
compositeDisposable
?
t

TarunY

07/01/2020, 1:52 AM
yes i do