]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/virtual/virtual.cpp
1. wxFontMapper starts to materialise
[wxWidgets.git] / samples / html / virtual / virtual.cpp
index 99e848ee55652b2fd8bc4bcdf65432c44f8ec17a..6efe0580be0bad3d6f079e052639a874e880e46f 100644 (file)
@@ -63,6 +63,9 @@ wxFSFile* MyVFS::OpenFile(wxFileSystem& fs, const wxString& location)
                  "<a href=\"%s-3\">sub-3</a><br>"
                  "</blockquote></body></html>",
                  location.GetData(), location.GetData(), location.GetData(), location.GetData());
+
+    // WARNING: wxMemoryInputStream will not free buf.
+    // There is a memory leak here.
     str = new wxMemoryInputStream(buf, strlen(buf));
     f = new wxFSFile(str, location, "text/html", wxEmptyString);
     return f;