>       Am I doing something wrong? Now, I'm looking in TemplateSign.cpp
> and xtest.cpp and it seems that I don't need to call load() when using
> CreateBlankSignature()?


You shouldn't need to call load() after a CreateBlankSignature().  The
latter does all the build work.

Having said that - just because we never considered it doesn't mean we
shouldn't handle it somehow.

So there are two options.


1.  We configure the code to cleanly delete the previous signature
information and then re-load.2.  We throw an exception when load() is called on a 
previously populated
signature object.  At least that way you would have had an indication that
something was wrong!

Thoughts?  I'm leaning towards the latter, because it clearly indicates
that something redundant has happened.  But even if we head down that
path, I think we should still clean up the code so that were a load
permitted, the memory leaks that you have found would not exist.

Cheers,
    Berin



Reply via email to