]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/virtual/virtual.cpp
Removed wxFindFocusDescendant for non-wxMSW platforms.
[wxWidgets.git] / samples / html / virtual / virtual.cpp
index 99e848ee55652b2fd8bc4bcdf65432c44f8ec17a..0898d66e13c21536c3598c3e3c0479cb6533a2e5 100644 (file)
@@ -63,8 +63,11 @@ 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);
+    f = new wxFSFile(str, location, "text/html", wxEmptyString, wxDateTime::Today());
     return f;
 }