Giter VIP home page Giter VIP logo

Comments (7)

ashfurrow avatar ashfurrow commented on July 17, 2024

Yup, gotcha. That's tricky – I think you're right that the struct is getting copied and the address used by objc_get/setAssociatedObject. Hmm. We may have to remove support for non-reference-types. This was introduced in this pr. I think adding a : class constraint to the HasDisposeBag protocol should fix the issue (while removing the ability to use this on value types).

What do you think? Up for a pull request? Thanks again for opening the issue!

from nsobject-rx.

grinder81 avatar grinder81 commented on July 17, 2024

Right now I'm doing some more investigation, I'll update when I'm done but I think that's the issue.

from nsobject-rx.

ashfurrow avatar ashfurrow commented on July 17, 2024

Cool, thanks! Let us know what you find 👍

from nsobject-rx.

grinder81 avatar grinder81 commented on July 17, 2024

Ok, I did quite an investigation.

  • I removed this pod completely and made sure there is no rx.disposeBag in my code
  • Replaced rx.disposeBag by self.disposeBag

But still, I'm seeing that issue. Which means I can't blame this pod for memory leaking.

However, I think that need to be fixed. I'll try to put a PR soon.

from nsobject-rx.

ashfurrow avatar ashfurrow commented on July 17, 2024

Awesome, I look forward to it 👍

from nsobject-rx.

grinder81 avatar grinder81 commented on July 17, 2024

PR is up! Discuss and comment there.

Thanks

from nsobject-rx.

ashfurrow avatar ashfurrow commented on July 17, 2024

Closed by #48, and released to CocoaPods as 4.0.0. Thanks again!

from nsobject-rx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.