gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] gnash/libamf README


From: Rob Savoye
Subject: Re: [Gnash-commit] gnash/libamf README
Date: Wed, 30 Apr 2008 08:08:36 -0600
User-agent: Thunderbird 2.0.0.12 (X11/20080226)

strk wrote:

> Question1: Do instances of the Element own the Buffer they use for 
>            holding the data they point to ? Are they responsible for
>            releasing it ?

  Yes, and yes.

> Question2: Element class has a _name member being a pointer.
>            Is it supposed to point inside the Buffer ? Or who is
>            responsible for its deletion ?
>            NOTE that the assignment operator for Element doesn't
>            copy the memory pointed-to by _name, while it's destructor
>            delete it.

  Yes, I just added s strdup(el->getName()), which is probably correct
as you noticed.

> Question3: Element class contain a vector of Elements (_properties).
>            Does it own those elements ? Who is responsible to
>            release them ?

 If an Element as any properties, when the top level Element is
destructed, it deletes all the properties too.

        - rob -





reply via email to

[Prev in Thread] Current Thread [Next in Thread]