Andrew,

   that's fine.  I must have been thinking of the delTPG() method in the 
CppTPGPlugin class but I didn't implement it anyway. Please feel free to 
revert any of my changes.

     Thanks
     David Nicholls



On 9/06/2013 9:45 PM, Andrew Robinson wrote:
>
> In src/Mod/Cam2/App/Plugins/TestPlugin/CppExampleTPG.cpp:
>
> > @@ -74,9 +74,7 @@
> >  }
> >
> >  CppExampleTPG::~CppExampleTPG() {
> > -    // Allow the plugin to close (if not needed anymore)
>
> This was releasing the reference counting so is likely still needed 
> unless you implemented so other method of releasing the Plugin once 
> its not used anymore.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/andrewjrobinson/FreeCAD_sf_master/pull/2/files#r4603919>.
>