diff -r 0c844a8549ae -r ca0ecbd73cb3 svgtopt/SVG/SVGImpl/src/SVGDocumentImpl.cpp --- a/svgtopt/SVG/SVGImpl/src/SVGDocumentImpl.cpp Tue Feb 02 00:46:06 2010 +0200 +++ b/svgtopt/SVG/SVGImpl/src/SVGDocumentImpl.cpp Fri Mar 19 09:42:47 2010 +0200 @@ -609,18 +609,19 @@ // ========================================================================== TDesC* CSvgDocumentImpl::GetId(TInt index) { + TDesC* id = NULL; RPointerArray ids; FindAllIds( (CSvgElementImpl*)RootElement(), ids ); if (index < ids.Count()) { - return (ids[index]); + id = ids[index]; } ids.Close(); - return NULL; + return id; } // ==========================================================================