Esri / local-government-desktop-addins

A series of ArcGIS Desktop Add-ins used in the ArcGIS for Local Government editing maps.
Apache License 2.0
61 stars 57 forks source link

ReleaseComObject code checks different object than it releases #278

Closed psiczewicz closed 5 years ago

psiczewicz commented 6 years ago

In AttributeAssistantAddIn > AttributeAssistantEditorExtension.cs, under case "LINK_TABLE_ASSET": There is a line of code that checks whether 'row' is null, but then releases a different object (cCurs).

if (row != null) Marshal.ReleaseComObject(cCurs); row = null;

I believe that it should be checking cCurs instead.

MikeMillerGIS commented 5 years ago

thanks, removed the line, as the cursor clean is handled in the finally.