Re: operator delete mismatch in ODatabaseMetaDataResultSet

Terrence Enger <[email protected]> Thu, 25 Mar 2010 15:39:58 -0400
Newsgroups gmane.comp.openoffice.dba.devel
Message-ID <1269545998.13859.54.camel@cougar-hardy>
Greetings,

And here is another one, the same except that the source file is
connectivity/source/drivers/odbcbase/OResultSet.cxx, the line number
of new[] is 119, and the line number of scalar delete is 165.

So, how many issues should there be for "operator delete mismatch"?
An awful lot of these come up in my (non-production) build when I work
in Base; I just dug into this one for a change while I wait for advice
on issue 94543.  I have already opened issue 110236
<http://www.openoffice.org/issues/show_bug.cgi?id=110236> for the same
assertion arising from a different place.

I invite your guidance.

Cheers,
Terry.


On Mon, 2010-03-22 at 08:28 -0400, Terrence Enger wrote:

>     summary         : operator delete mismatch in ODatabaseMetaDataResultSet

> And then the patch ...
> 
>     --- ODatabaseMetaDataResultSet.cxx_m75    2010-03-21 23:37:01.000000000 -0400
>     +++ ODatabaseMetaDataResultSet.cxx_tje    2010-03-21 23:38:03.000000000 -0400
>     @@ -97,7 +97,7 @@
>               osl_incrementInterlockedCount( &m_refCount );
>               dispose();
>       }
>     - delete m_pRowStatusArray;
>     + delete [] m_pRowStatusArray;
>      }
>      // -------------------------------------------------------------------------
>      void ODatabaseMetaDataResultSet::disposing(void)