diff options
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/dlg/odbcconfig.cxx | 1 | ||||
-rw-r--r-- | dbaccess/source/ui/dlg/odbcconfig.hxx | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/odbcconfig.cxx b/dbaccess/source/ui/dlg/odbcconfig.cxx index b4c482d698c1..cd90b3a1b24c 100644 --- a/dbaccess/source/ui/dlg/odbcconfig.cxx +++ b/dbaccess/source/ui/dlg/odbcconfig.cxx @@ -147,7 +147,6 @@ OOdbcEnumeration::OOdbcEnumeration() OOdbcEnumeration::~OOdbcEnumeration() { freeEnv(); - delete m_pImpl; unload(); } diff --git a/dbaccess/source/ui/dlg/odbcconfig.hxx b/dbaccess/source/ui/dlg/odbcconfig.hxx index eb60baddf113..04af12d08ab6 100644 --- a/dbaccess/source/ui/dlg/odbcconfig.hxx +++ b/dbaccess/source/ui/dlg/odbcconfig.hxx @@ -53,7 +53,7 @@ class OOdbcEnumeration oslGenericFunction m_pDataSources; #endif - OdbcTypesImpl* m_pImpl; + std::unique_ptr<OdbcTypesImpl> m_pImpl; // needed because we can't have a member of type SQLHANDLE: this would require us to include the respective // ODBC file, which would lead to a lot of conflicts with other includes |