https://bugs.documentfoundation.org/show_bug.cgi?id=112947
Julien Nabet <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #2 from Julien Nabet <[email protected]> ---
(In reply to Nick Gorham from comment #0)
> ...
> A simple (and seems to work) fix is to reset the value when its released.
>
> OResultSet::~OResultSet()
> {
> setStmtOption<SQLUSMALLINT*, SQL_IS_POINTER>(SQL_ATTR_ROW_STATUS_PTR,
> NULL);
> delete [] m_pRowStatusArray;
> delete m_pSkipDeletedSet;
> }
m_pSkipDeletedSet is a unique_ptr so it'll be automatically destroyed in the
destructor of OResultSet
see
https://opengrok.libreoffice.org/xref/core/connectivity/source/inc/odbc/OResultSet.hxx#138
About m_pRowStatusArray, it's also a unique_ptr
see
https://opengrok.libreoffice.org/xref/core/connectivity/source/inc/odbc/OResultSet.hxx#141
so will be automatically destroyed.
About instruction with setStmtOption, it may help but am not sure.
Lionel: any thoughts about this?
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs