Navigation Menu

Skip to content

Commit

Permalink
mysql8 wrapper: use mrn_destroy() instead of raw delete
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 10, 2018
1 parent 693ed25 commit 8751316
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ha_mroonga.cpp
Expand Up @@ -4810,7 +4810,7 @@ int ha_mroonga::wrapper_open(const char *name,
grn_table = NULL;
// TODO: free indexes.

delete wrap_handler;
mrn_destroy(wrap_handler);
wrap_handler = NULL;
if (wrap_key_info)
{
Expand Down Expand Up @@ -5421,7 +5421,7 @@ int ha_mroonga::wrapper_close()
#endif
MRN_SET_BASE_SHARE_KEY(share, table->s);
MRN_SET_BASE_TABLE_KEY(this, table);
delete wrap_handler;
mrn_destroy(wrap_handler);
wrap_handler = NULL;
if (wrap_key_info)
{
Expand Down

0 comments on commit 8751316

Please sign in to comment.