Well observed, patch is applied.

Thank  you,
Wim.

2011/4/29 Gaetano Mendola <[email protected]>:
> Hi all,
> looking at the code it seems that WObject has a lazy initialization of
> signal member "destroyed_" only when
> someone asks to be notified. I immagine the lazy initialization is due
> the fact the majority of classes derived
> by WObject are not asked to emit that signal.
>
> Patch to destroy this signal instante in WObject DTOR follows.
>
> diff --git a/src/Wt/WObject.C b/src/Wt/WObject.C
> index 09cc975..d89b5cc 100644
> --- a/src/Wt/WObject.C
> +++ b/src/Wt/WObject.C
> @@ -76,6 +76,7 @@ WObject::~WObject()
>  #ifndef WT_CNOR
>   if (destroyed_)
>     destroyed_->emit(this);
> +  delete destroyed_;
>  #endif
>
>   for (unsigned i = 0; i < statelessSlots_.size(); ++i)
>
>
>
> Gaetano
>
> --
> cpp-today.blogspot.com
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to