incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 113608] animations: All animation nodes are leaked
Date Fri, 15 Jun 2012 08:03:45 GMT

--- Comment #9 from Andre <> ---
You found the root cause for mpImpl being NULL.  Very good.

If you replace the lines

    uno::Reference< uno::XInterface > xShape( maWeakUnoShape );  // zhangjf
    if (! mpSvxShape)                               // zhangjf
        return NULL;                                         // zhangjf

    return mpSvxShape;


    if (mpSvxShape!=NULL && maWeakUnoShape.get() == NULL)
        return NULL;
        return mpSvxShape;

then the whole thing becomes even clearer and a little faster (no type
conversion of xShape).

Maybe it would be even better to remove the const attribute from the
getSvxShape() method and set mpSvxShape to NULL when the weak pointer is gone. 
This might prevent errors in other scenarios.
What do you think?

You are receiving this mail because:
You are on the CC list for the bug.

View raw message