On Fri, Oct 2, 2020 at 11:57 AM [email protected] <[email protected]>
wrote:

By adding print statements to the constructors, I see that only one VR3
> plugin instance is getting created per outline.  I also see that a new VR3
> controller widget (ViewRenderedController3) is getting created every time
> the vr3-show command is run.
>

That's not how I read the code.  See vr3.getVr3. It's
vr3.ensure_text_widget that allocates the widget.


> So the question is, what happens to the previous instance?  Leaked or GCed?
>

Imo you are overly worried about the gc. Unless VR3 is creating *separate*
links to allocated widgets, it hardly matters how many widgets get
allocated. Only widgets with references will stick around. The gc will
handle the rest.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS2QNP1hky7Wp2wuDLiqnVf12j7rgAgg4MRba_zJ2Eq6kA%40mail.gmail.com.

Reply via email to