Browse Source

Fix memory leak in StyleSheetParser

Lloyd Weehuizen 15 years ago
parent
commit
26fab60bb6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/Core/StyleSheetParser.cpp

+ 2 - 1
Source/Core/StyleSheetParser.cpp

@@ -88,7 +88,8 @@ bool StyleSheetParser::ParseProperties(PropertyDictionary& parsed_properties, co
 {
 {
 	stream = new StreamMemory((const byte*)properties.CString(), properties.Length());
 	stream = new StreamMemory((const byte*)properties.CString(), properties.Length());
 	bool success = ReadProperties(parsed_properties);
 	bool success = ReadProperties(parsed_properties);
-	stream->Close();
+	stream->RemoveReference();
+	stream = NULL;
 	return success;
 	return success;
 }
 }