Since the capi callbacks are implemented in C style,
it is more appropriate to use free() instead of
delete / delete[] for releasing the pointer value that contains
dynamically-allocated memory returned from callback funtions.
Change-Id: I26bad5fe5213f1f75e52ec32592369cbd60210b0
m_impl->send.put_data (buf, len);
m_impl->send.write_to_socket (m_impl->socket);
if (NULL != buf)
- delete[] buf;
+ free(buf);
break;
}
case ISM_TRANS_CMD_GET_ISE_LANGUAGE_LOCALE:
m_impl->send.put_data (buf, strlen (buf));
m_impl->send.write_to_socket (m_impl->socket);
if (NULL != buf)
- delete[] buf;
+ free(buf);
break;
}
case ISM_TRANS_CMD_SET_RETURN_KEY_TYPE:
m_impl->send.put_data(buf, strlen(buf));
m_impl->send.write_to_socket(m_impl->socket_active, m_impl->magic_active);
}
- delete[] buf;
+ free(buf);
buf = NULL;
}