svgtopt/SVG/SVGImpl/src/SVGTextElementImpl.cpp
branchRCL_3
changeset 39 1902ade171ab
parent 38 db5c883ad1c5
--- a/svgtopt/SVG/SVGImpl/src/SVGTextElementImpl.cpp	Tue Aug 31 16:06:58 2010 +0300
+++ b/svgtopt/SVG/SVGImpl/src/SVGTextElementImpl.cpp	Wed Sep 01 12:20:46 2010 +0100
@@ -2885,7 +2885,12 @@
     		//SetFontFamilyL(_L("NokiaSansWide"));
     		if(!aReturn)
     		    {
-	            delete lNewFontDoc;
+    		      if(lNewFontDoc)
+    		        {
+    		            delete lNewFontDoc;
+                        lNewFontDoc = NULL;  
+    		        }
+    		      
     		    }
     		return ETrue;
     	}
@@ -2899,6 +2904,7 @@
     }
 
     delete lNewFontDoc;
+    lNewFontDoc = NULL;
     return EFalse;
 }