peterharaszin / yakindu

Automatically exported from code.google.com/p/yakindu
0 stars 0 forks source link

C++ generator doesn't cleanup it's own interfaces #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. define an interface with only in events
2. generate cpp code
3. interface is generated in constructor with new but not deleted in destructor.

What is the expected output? What do you see instead?
Revert allocation of the constructor in the destructor.
e.g.

MasterControl::MasterControl() {
    ifaceInternal = new SCI_Internal();
}
MasterControl::MasterControl() {
    delete ifaceInternal;
}

What version of the product are you using? On what operating system?
eclipse luna with yakindu 2.3.1 (OS = Windows)

Please provide any additional information below.
-

Original issue reported on code.google.com by andreas....@gmail.com on 30 Sep 2014 at 9:05

GoogleCodeExporter commented 9 years ago
This issue is already in work. Interface instances will become member of the 
state machine structure. So dynamic memory allocation will be obsolete here.

Since we currently migrate from an internal to google code issue tracker not 
all issues may already be visible.

Original comment by AxelTerfloth on 30 Sep 2014 at 9:23

GoogleCodeExporter commented 9 years ago

Original comment by AxelTerfloth on 30 Sep 2014 at 9:23

GoogleCodeExporter commented 9 years ago
This issue is solved with the refactoring of the internal interface variables 
(issue 51).

Original comment by markus.muehlbrandt on 30 Sep 2014 at 11:01