diff -r 19f463b3b9b2 -r baacd33d915b svgtopt/SVG/SVGImpl/src/SVGDocumentImpl.cpp --- a/svgtopt/SVG/SVGImpl/src/SVGDocumentImpl.cpp Fri Feb 19 23:44:22 2010 +0200 +++ b/svgtopt/SVG/SVGImpl/src/SVGDocumentImpl.cpp Fri Mar 12 15:47:00 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; } // ==========================================================================