Skip to content

Conversation

kjbracey
Copy link
Contributor

@kjbracey kjbracey commented Feb 1, 2019

Description

SharedPtr::reset did not actually set the stored pointer value.
Correct this, with other minor tidies:

  • Ensure counter is set to NULL if pointer is reset to NULL
  • Be consistent about not clearing pointers in decrement_counter().

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

SharedPtr::reset did not actually set the stored pointer value.
Correct this, with other minor tidies:

* Ensure counter is set to NULL if pointer is reset to NULL
* Be consistent about not clearing pointers in decrement_counter().
@ciarmcom
Copy link
Member

ciarmcom commented Feb 1, 2019

@kjbracey-arm, thank you for your changes.
@ARMmbed/mbed-os-core @ARMmbed/mbed-os-maintainers please review.

@cmonr
Copy link
Contributor

cmonr commented Feb 2, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Feb 2, 2019

Test run: SUCCESS

Summary: 12 of 12 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit 6684570 into ARMmbed:master Feb 4, 2019
@kjbracey kjbracey deleted the sharedptr_reset branch June 26, 2019 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants