Skip to content
Snippets Groups Projects
Commit f1c33b8e authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix memory leaks

parent 562e6c99
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ Symbol::Symbol(const Symbol& other) : symbol(other.getSymbol().clone()) { ...@@ -21,7 +21,7 @@ Symbol::Symbol(const Symbol& other) : symbol(other.getSymbol().clone()) {
   
} }
   
Symbol::Symbol(Symbol&& other) noexcept : symbol(std::move(other.getSymbol()).plunder()) { Symbol::Symbol(Symbol&& other) noexcept : symbol(other.symbol) {
other.symbol = NULL; other.symbol = NULL;
} }
   
......
...@@ -21,7 +21,7 @@ Label::Label(const Label& other) : label(other.getLabel().clone()) { ...@@ -21,7 +21,7 @@ Label::Label(const Label& other) : label(other.getLabel().clone()) {
   
} }
   
Label::Label(Label&& other) noexcept : label(std::move(other.getLabel()).plunder()) { Label::Label(Label&& other) noexcept : label(other.label) {
other.label = NULL; other.label = NULL;
} }
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment