mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
some fix
This commit is contained in:
parent
e00ddb8692
commit
b8b42a8414
@ -74,12 +74,7 @@ struct Bytes{
|
|||||||
Bytes& operator=(const Bytes& rhs) = delete;
|
Bytes& operator=(const Bytes& rhs) = delete;
|
||||||
std::pair<unsigned char*, int> detach() noexcept;
|
std::pair<unsigned char*, int> detach() noexcept;
|
||||||
|
|
||||||
~Bytes(){
|
~Bytes(){ delete[] _data;}
|
||||||
if(_data != nullptr){
|
|
||||||
free(_data);
|
|
||||||
_data = nullptr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
using Super = std::pair<PyObject*, Type>;
|
using Super = std::pair<PyObject*, Type>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user