# Regarding use of pqPointPickingHelper

**URL:** https://discourse.paraview.org/t/regarding-use-of-pqpointpickinghelper/9064
**Category:** Development
**Created:** [February 25, 2022, 12:21am UTC](https://discourse.paraview.org/t/regarding-use-of-pqpointpickinghelper/9064 "2022-02-25T00:21:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Cam](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cam/32/8343_2.png) [@Cam](https://discourse.paraview.org/u/Cam)
#### Post date: [February 25, 2022, 12:21am UTC](https://discourse.paraview.org/t/regarding-use-of-pqpointpickinghelper/9064/1 "2022-02-25T00:21:52Z")

</div>

I recently looked into the pqPointPickingHelper and have a question about the memory management.  
In [pqSplinePropertyWidget.cxx](https://github.com/Kitware/ParaView/blob/e7dd38061e0f91007002fe1ff4c19fcb8114d672/Qt/ApplicationComponents/pqSplinePropertyWidget.cxx), multiple pqPointPickingHelper objects are allocated using `new` from line [345](https://github.com/Kitware/ParaView/blob/e7dd38061e0f91007002fe1ff4c19fcb8114d672/Qt/ApplicationComponents/pqSplinePropertyWidget.cxx#L345) to [373](https://github.com/Kitware/ParaView/blob/e7dd38061e0f91007002fe1ff4c19fcb8114d672/Qt/ApplicationComponents/pqSplinePropertyWidget.cxx#L373). But I don’t see they get released anywhere. Since this is not a vtkSmartPointer so there is no reference count to manage it automatically. Do I miss anything here?

Thanks,  
Cam

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 25, 2022, 8:59am UTC](https://discourse.paraview.org/t/regarding-use-of-pqpointpickinghelper/9064/2 "2022-02-25T08:59:13Z")

</div>

This is Qt code. QObject are deleted when the parent is deleted, in this case this is `this`. No leaks here.
