]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wxcrt.cpp
Explicitly unregister custom wxWebViewIE namespaces when we are done with them. Also...
[wxWidgets.git] / src / common / wxcrt.cpp
index f58ac30fd0dc79f597521d54e620f5095b044a5c..5e8304da52f22d0ba6e4fad984c31dda94e00d7c 100644 (file)
@@ -834,7 +834,8 @@ wxChar32* wxStrdup(const wxChar32* s)
 {
   size_t size = (wxStrlen(s) + 1) * sizeof(wxChar32);
   wxChar32 *ret = (wxChar32*) malloc(size);
-  memcpy(ret, s, size);
+  if ( ret )
+      memcpy(ret, s, size);
   return ret;
 }
 #endif