mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-18 07:41:32 +02:00
cleanup
This commit is contained in:
@@ -36,13 +36,14 @@ namespace monero {
|
||||
|
||||
void onSyncStart(uint64_t startHeight, MoneroSyncListener* syncListener) {
|
||||
syncStartHeight = new uint64_t(startHeight);
|
||||
cout << "Set start height " << startHeight << " vs " << *syncStartHeight << endl;
|
||||
this->syncListener = syncListener;
|
||||
updateListening();
|
||||
}
|
||||
|
||||
void onSyncEnd() {
|
||||
syncStartHeight = nullptr; // TODO: delete first? yes.
|
||||
delete syncStartHeight;
|
||||
syncStartHeight = nullptr;
|
||||
delete syncEndHeight;
|
||||
syncEndHeight = nullptr;
|
||||
syncListener = nullptr;
|
||||
updateListening();
|
||||
|
||||
Reference in New Issue
Block a user