Forgot this file.
authorZiliang Guo <drakekaizer666@gmail.com>
Mon, 21 Apr 2008 03:50:48 +0000 (03:50 +0000)
committerZiliang Guo <drakekaizer666@gmail.com>
Mon, 21 Apr 2008 03:50:48 +0000 (03:50 +0000)
svn path=/trunk/; revision=33083

reactos/tools/xml.cpp

index 429eeec..2a2b7fd 100644 (file)
@@ -833,8 +833,10 @@ XMLLoadInclude (
                                                        Path::RelativeFromWorkingDirectory ( includeFile ) );
                                                XMLInclude* fallbackInclude =
                                                        new XMLInclude ( e3, include.path, topIncludeFile );
-                                               return XMLLoadInclude (
-                                                       *fallbackInclude, includes );
+
+                                               XMLElement* value = XMLLoadInclude (*fallbackInclude, includes );
+                                               delete fallbackInclude;
+                                               return value;
                                        }
                                }
                                throw XMLInvalidBuildFileException (