You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Thomas Gentsch (JIRA)" <de...@tuscany.apache.org> on 2010/06/18 15:15:23 UTC

[jira] Updated: (TUSCANY-1552) Severe memory leak in DataObjectImpl.

     [ https://issues.apache.org/jira/browse/TUSCANY-1552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Gentsch updated TUSCANY-1552:
------------------------------------

    Attachment: DataObjectImpl.cpp-PATCH
                testmlk.cpp
                schema1.xsd


This patch works nicely in my use case. Even the scenario, where I originally expected problems, works w/o problems, for example:
[...]
  DataObjectPtr o = ...

  printf("Getting prop2 list ...\n");
  DataObjectList & p2List = o->getList("prop2");

  printf("Release original sdo ...\n");
  o = mdg->create("http://ns1", "class1");

  printf("Access prop2 list ...\n");
  printf("List has %d elements:\n", p2List.size());


> Severe memory leak in DataObjectImpl.
> -------------------------------------
>
>                 Key: TUSCANY-1552
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1552
>             Project: Tuscany
>          Issue Type: Bug
>          Components: C++ SDO
>    Affects Versions: Cpp-M3
>         Environment: All
>            Reporter: Albert Krzymowski
>             Fix For: Java-SDO-Next
>
>         Attachments: DataObjectImpl.cpp-PATCH, schema1.xsd, testmlk.cpp
>
>
> Memory leak in DataObjectImpl:
> the private listValue member is never:
>  initialized, deleted, and copied properly in coping constructors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.