Reviewed by eric.
Turned off C++ exceptions, fixed memory leaks
* DumpRenderTree/DumpRenderTree.vcproj/DumpRenderTree/DumpRenderTree.vcproj:
* Spinneret/Spinneret.sln:
* Spinneret/Spinneret/Spinneret.cpp:
(_tWinMain):
* Spinneret/Spinneret/Spinneret.vcproj:
* Spinneret/Spinneret/WebFrame.cpp:
(WebKit::WebFrame::WebFramePrivate::~WebFramePrivate):
(WebKit::WebFrame::WebFrame):
(WebKit::WebFrame::~WebFrame):
(WebKit::WebFrame::impl):
* Spinneret/Spinneret/WebFrame.h:
* Spinneret/Spinneret/WebView.cpp:
* Spinneret/Spinneret/stdafx.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14117
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-04-28 Steve Falkenburg <sfalken@apple.com>
+
+ Reviewed by eric.
+
+ Turned off C++ exceptions, fixed memory leaks
+
+ * DumpRenderTree/DumpRenderTree.vcproj/DumpRenderTree/DumpRenderTree.vcproj:
+ * Spinneret/Spinneret.sln:
+ * Spinneret/Spinneret/Spinneret.cpp:
+ (_tWinMain):
+ * Spinneret/Spinneret/Spinneret.vcproj:
+ * Spinneret/Spinneret/WebFrame.cpp:
+ (WebKit::WebFrame::WebFramePrivate::~WebFramePrivate):
+ (WebKit::WebFrame::WebFrame):
+ (WebKit::WebFrame::~WebFrame):
+ (WebKit::WebFrame::impl):
+ * Spinneret/Spinneret/WebFrame.h:
+ * Spinneret/Spinneret/WebView.cpp:
+ * Spinneret/Spinneret/stdafx.h:
+
2006-04-28 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Darin.
<Tool\r
Name="VCCLCompilerTool"\r
Optimization="0"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\..\..\..\WebCore";"$(SolutionDir)\..\..\..\WebCore\loader";"$(SolutionDir)\..\..\..\WebCore\khtml\dom";"$(SolutionDir)\..\..\..\WebCore\khtml\ecma";"$(SolutionDir)\..\..\..\WebCore\khtml\html";"$(SolutionDir)\..\..\..\WebCore\khtml";"$(SolutionDir)\..\..\..\WebCore\css";"$(SolutionDir)\..\..\..\WebCore\khtml\misc";"$(SolutionDir)\..\..\..\WebCore\platform";"$(SolutionDir)\..\..\..\WebCore\bridge\win";"$(SolutionDir)\..\..\..\WebCore\page";"$(SolutionDir)\..\..\..\WebCore\bridge";"$(SolutionDir)\..\..\..\WebCore\platform\win";"$(SolutionDir)\..\..\..\WebCore\rendering";"$(SolutionDir)\..\..\..\WebCore\editing";"$(SolutionDir)\..\..\..\WebCore\dom";"$(SolutionDir)\..\..\..\WebCore\xml";"$(SolutionDir)\..\..\..\WebCore\kwq";"$(SolutionDir)\..\..\..\iconv";"$(SolutionDir)\..\..\..\libxml2";"$(SolutionDir)\..\..\..\icu\include";"$(SolutionDir)\..\..\..\JavaScriptCore";"$(SolutionDir)\..\..\..\JavaScriptCore\os-win32";"$(SolutionDir)\..\..\..\JavaScriptCore\kxmlcore";"$(SolutionDir)\..\..\..\WebCore\ForwardingHeaders""\r
+ AdditionalIncludeDirectories=""$(ProjectDir)\..\..\..\..\WebCore";"$(ProjectDir)\..\..\..\..\WebCore\loader";"$(ProjectDir)\..\..\..\..\WebCore\khtml\dom";"$(ProjectDir)\..\..\..\..\WebCore\khtml\ecma";"$(ProjectDir)\..\..\..\..\WebCore\khtml\html";"$(ProjectDir)\..\..\..\..\WebCore\khtml";"$(ProjectDir)\..\..\..\..\WebCore\css";"$(ProjectDir)\..\..\..\..\WebCore\khtml\misc";"$(ProjectDir)\..\..\..\..\WebCore\platform";"$(ProjectDir)\..\..\..\..\WebCore\bridge\win";"$(ProjectDir)\..\..\..\..\WebCore\page";"$(ProjectDir)\..\..\..\..\WebCore\bridge";"$(ProjectDir)\..\..\..\..\WebCore\platform\win";"$(ProjectDir)\..\..\..\..\WebCore\rendering";"$(ProjectDir)\..\..\..\..\WebCore\editing";"$(ProjectDir)\..\..\..\..\WebCore\dom";"$(ProjectDir)\..\..\..\..\WebCore\xml";"$(ProjectDir)\..\..\..\..\WebCore\kwq";"$(ProjectDir)\..\..\..\..\iconv";"$(ProjectDir)\..\..\..\..\libxml2";"$(ProjectDir)\..\..\..\..\icu\include";"$(ProjectDir)\..\..\..\..\JavaScriptCore";"$(ProjectDir)\..\..\..\..\JavaScriptCore\os-win32";"$(ProjectDir)\..\..\..\..\JavaScriptCore\kxmlcore";"$(ProjectDir)\..\..\..\..\WebCore\ForwardingHeaders""\r
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"\r
MinimalRebuild="true"\r
BasicRuntimeChecks="3"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalOptions=""$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\WebCore.lib"
"$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\JavaScriptCore.lib"
"$(SolutionDir)\..\..\..\iconv\lib\iconv.lib"
"$(SolutionDir)\..\..\..\libxml\lib\libxml2.lib"
"$(SolutionDir)\..\..\..\libxslt\lib\libxslt.lib"
"$(SolutionDir)\..\..\..\icu\lib\icuuc.lib""\r
+ AdditionalOptions=""$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\WebCore.lib"
"$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\JavaScriptCore.lib"
"$(ProjectDir)\..\..\..\..\iconv\lib\iconv.lib"
"$(ProjectDir)\..\..\..\..\libxml\lib\libxml2.lib"
"$(ProjectDir)\..\..\..\..\libxslt\lib\libxslt.lib"
"$(ProjectDir)\..\..\..\..\icu\lib\icuuc.lib""\r
LinkIncremental="2"\r
GenerateDebugInformation="true"\r
SubSystem="1"\r
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\..\..\..\WebCore";"$(SolutionDir)\..\..\..\WebCore\loader";"$(SolutionDir)\..\..\..\WebCore\khtml\dom";"$(SolutionDir)\..\..\..\WebCore\khtml\ecma";"$(SolutionDir)\..\..\..\WebCore\khtml\html";"$(SolutionDir)\..\..\..\WebCore\khtml";"$(SolutionDir)\..\..\..\WebCore\css";"$(SolutionDir)\..\..\..\WebCore\khtml\misc";"$(SolutionDir)\..\..\..\WebCore\platform";"$(SolutionDir)\..\..\..\WebCore\bridge\win";"$(SolutionDir)\..\..\..\WebCore\page";"$(SolutionDir)\..\..\..\WebCore\bridge";"$(SolutionDir)\..\..\..\WebCore\platform\win";"$(SolutionDir)\..\..\..\WebCore\rendering";"$(SolutionDir)\..\..\..\WebCore\editing";"$(SolutionDir)\..\..\..\WebCore\dom";"$(SolutionDir)\..\..\..\WebCore\xml";"$(SolutionDir)\..\..\..\WebCore\kwq";"$(SolutionDir)\..\..\..\iconv";"$(SolutionDir)\..\..\..\libxml2";"$(SolutionDir)\..\..\..\icu\include";"$(SolutionDir)\..\..\..\JavaScriptCore";"$(SolutionDir)\..\..\..\JavaScriptCore\os-win32";"$(SolutionDir)\..\..\..\JavaScriptCore\kxmlcore";"$(SolutionDir)\..\..\..\WebCore\ForwardingHeaders""\r
+ AdditionalIncludeDirectories=""$(ProjectDir)\..\..\..\..\WebCore";"$(ProjectDir)\..\..\..\..\WebCore\loader";"$(ProjectDir)\..\..\..\..\WebCore\khtml\dom";"$(ProjectDir)\..\..\..\..\WebCore\khtml\ecma";"$(ProjectDir)\..\..\..\..\WebCore\khtml\html";"$(ProjectDir)\..\..\..\..\WebCore\khtml";"$(ProjectDir)\..\..\..\..\WebCore\css";"$(ProjectDir)\..\..\..\..\WebCore\khtml\misc";"$(ProjectDir)\..\..\..\..\WebCore\platform";"$(ProjectDir)\..\..\..\..\WebCore\bridge\win";"$(ProjectDir)\..\..\..\..\WebCore\page";"$(ProjectDir)\..\..\..\..\WebCore\bridge";"$(ProjectDir)\..\..\..\..\WebCore\platform\win";"$(ProjectDir)\..\..\..\..\WebCore\rendering";"$(ProjectDir)\..\..\..\..\WebCore\editing";"$(ProjectDir)\..\..\..\..\WebCore\dom";"$(ProjectDir)\..\..\..\..\WebCore\xml";"$(ProjectDir)\..\..\..\..\WebCore\kwq";"$(ProjectDir)\..\..\..\..\iconv";"$(ProjectDir)\..\..\..\..\libxml2";"$(ProjectDir)\..\..\..\..\icu\include";"$(ProjectDir)\..\..\..\..\JavaScriptCore";"$(ProjectDir)\..\..\..\..\JavaScriptCore\os-win32";"$(ProjectDir)\..\..\..\..\JavaScriptCore\kxmlcore";"$(ProjectDir)\..\..\..\..\WebCore\ForwardingHeaders""\r
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"\r
RuntimeLibrary="2"\r
UsePrecompiledHeader="0"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalOptions=""$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\WebCore.lib"
"$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\JavaScriptCore.lib"
"$(SolutionDir)\..\..\..\iconv\lib\iconv.lib"
"$(SolutionDir)\..\..\..\libxml\lib\libxml2.lib"
"$(SolutionDir)\..\..\..\libxslt\lib\libxslt.lib"
"$(SolutionDir)\..\..\..\icu\lib\icuuc.lib""\r
+ AdditionalOptions=""$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\WebCore.lib"
"$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\JavaScriptCore.lib"
"$(ProjectDir)\..\..\..\..\iconv\lib\iconv.lib"
"$(ProjectDir)\..\..\..\..\libxml\lib\libxml2.lib"
"$(ProjectDir)\..\..\..\..\libxslt\lib\libxslt.lib"
"$(ProjectDir)\..\..\..\..\icu\lib\icuuc.lib""\r
LinkIncremental="1"\r
GenerateDebugInformation="true"\r
SubSystem="1"\r
Microsoft Visual Studio Solution File, Format Version 9.00\r
# Visual Studio 2005\r
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Spinneret", "Spinneret\Spinneret.vcproj", "{114FCA11-216B-4C8C-957E-30A75AE80443}"\r
+ ProjectSection(ProjectDependencies) = postProject\r
+ {1C16337B-ACF3-4D03-AA90-851C5B5EADA6} = {1C16337B-ACF3-4D03-AA90-851C5B5EADA6}\r
+ {011D10F1-B656-4A1B-A0C3-3842F02122C5} = {011D10F1-B656-4A1B-A0C3-3842F02122C5}\r
+ EndProjectSection\r
+EndProject\r
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "JavaScriptCore", "..\..\JavaScriptCore\JavaScriptCore.vcproj\JavaScriptCore\JavaScriptCore.vcproj", "{011D10F1-B656-4A1B-A0C3-3842F02122C5}"\r
+EndProject\r
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WebCore", "..\..\WebCore\WebCore.vcproj\WebCore\WebCore.vcproj", "{1C16337B-ACF3-4D03-AA90-851C5B5EADA6}"\r
EndProject\r
Global\r
GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
{114FCA11-216B-4C8C-957E-30A75AE80443}.Debug|Win32.Build.0 = Debug|Win32\r
{114FCA11-216B-4C8C-957E-30A75AE80443}.Release|Win32.ActiveCfg = Release|Win32\r
{114FCA11-216B-4C8C-957E-30A75AE80443}.Release|Win32.Build.0 = Release|Win32\r
+ {011D10F1-B656-4A1B-A0C3-3842F02122C5}.Debug|Win32.ActiveCfg = Debug|Win32\r
+ {011D10F1-B656-4A1B-A0C3-3842F02122C5}.Debug|Win32.Build.0 = Debug|Win32\r
+ {011D10F1-B656-4A1B-A0C3-3842F02122C5}.Release|Win32.ActiveCfg = Release|Win32\r
+ {011D10F1-B656-4A1B-A0C3-3842F02122C5}.Release|Win32.Build.0 = Release|Win32\r
+ {1C16337B-ACF3-4D03-AA90-851C5B5EADA6}.Debug|Win32.ActiveCfg = Debug|Win32\r
+ {1C16337B-ACF3-4D03-AA90-851C5B5EADA6}.Debug|Win32.Build.0 = Debug|Win32\r
+ {1C16337B-ACF3-4D03-AA90-851C5B5EADA6}.Release|Win32.ActiveCfg = Release|Win32\r
+ {1C16337B-ACF3-4D03-AA90-851C5B5EADA6}.Release|Win32.Build.0 = Release|Win32\r
EndGlobalSection\r
GlobalSection(SolutionProperties) = preSolution\r
HideSolutionNode = FALSE\r
#include "Spinneret.h"
#include "WebView.h"
#include "WebFrame.h"
+#include "unicode/uclean.h"
#include <commctrl.h>
LPTSTR lpCmdLine,
int nCmdShow)
{
+#ifdef _CRTDBG_MAP_ALLOC
+ _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
+ _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
+#endif
+
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
}
}
+ delete gWebView;
+#ifdef _CRTDBG_MAP_ALLOC
+ u_cleanup();
+ _CrtDumpMemoryLeaks();
+#endif
+
return (int) msg.wParam;
}
<Tool\r
Name="VCCLCompilerTool"\r
Optimization="0"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\..\..\WebCore";"$(SolutionDir)\..\..\WebCore\loader";"$(SolutionDir)\..\..\WebCore\khtml\dom";"$(SolutionDir)\..\..\WebCore\khtml\ecma";"$(SolutionDir)\..\..\WebCore\html";"$(SolutionDir)\..\..\WebCore\khtml";"$(SolutionDir)\..\..\WebCore\css";"$(SolutionDir)\..\..\WebCore\khtml\misc";"$(SolutionDir)\..\..\WebCore\platform";"$(SolutionDir)\..\..\WebCore\bridge\win";"$(SolutionDir)\..\..\WebCore\page";"$(SolutionDir)\..\..\WebCore\bridge";"$(SolutionDir)\..\..\WebCore\platform\cairo\cairo\src";"$(SolutionDir)\..\..\WebCore\platform\win";"$(SolutionDir)\..\..\WebCore\rendering";"$(SolutionDir)\..\..\WebCore\editing";"$(SolutionDir)\..\..\WebCore\dom";"$(SolutionDir)\..\..\WebCore\xml";"$(SolutionDir)\..\..\WebCore\kwq";"$(SolutionDir)\..\..\iconv";"$(SolutionDir)\..\..\libxml2";"$(SolutionDir)\..\..\icu\include";"$(SolutionDir)\..\..\JavaScriptCore";"$(SolutionDir)\..\..\JavaScriptCore\os-win32";"$(SolutionDir)\..\..\JavaScriptCore\kxmlcore";"$(SolutionDir)\..\..\WebCore\ForwardingHeaders""\r
- PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"\r
+ AdditionalIncludeDirectories=""$(ProjectDir)\..\..\..\WebCore";"$(ProjectDir)\..\..\..\WebCore\loader";"$(ProjectDir)\..\..\..\WebCore\khtml\dom";"$(ProjectDir)\..\..\..\WebCore\khtml\ecma";"$(ProjectDir)\..\..\..\WebCore\html";"$(ProjectDir)\..\..\..\WebCore\khtml";"$(ProjectDir)\..\..\..\WebCore\css";"$(ProjectDir)\..\..\..\WebCore\khtml\misc";"$(ProjectDir)\..\..\..\WebCore\platform";"$(ProjectDir)\..\..\..\WebCore\bridge\win";"$(ProjectDir)\..\..\..\WebCore\page";"$(ProjectDir)\..\..\..\WebCore\bridge";"$(ProjectDir)\..\..\..\WebCore\platform\cairo\cairo\src";"$(ProjectDir)\..\..\..\WebCore\platform\win";"$(ProjectDir)\..\..\..\WebCore\rendering";"$(ProjectDir)\..\..\..\WebCore\editing";"$(ProjectDir)\..\..\..\WebCore\dom";"$(ProjectDir)\..\..\..\WebCore\xml";"$(ProjectDir)\..\..\..\WebCore\kwq";"$(ProjectDir)\..\..\..\iconv";"$(ProjectDir)\..\..\..\libxml2";"$(ProjectDir)\..\..\..\icu\include";"$(ProjectDir)\..\..\..\JavaScriptCore";"$(ProjectDir)\..\..\..\JavaScriptCore\os-win32";"$(ProjectDir)\..\..\..\JavaScriptCore\kxmlcore";"$(ProjectDir)\..\..\..\WebCore\ForwardingHeaders""\r
+ PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE"\r
MinimalRebuild="true"\r
+ ExceptionHandling="0"\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="3"\r
+ RuntimeTypeInfo="false"\r
UsePrecompiledHeader="2"\r
WarningLevel="1"\r
Detect64BitPortabilityProblems="false"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalOptions=""$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\WebCore.lib"
"$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\JavaScriptCore.lib"
"$(SolutionDir)\..\..\iconv\lib\iconv.lib"
"$(SolutionDir)\..\..\libxml\lib\libxml2.lib"
"$(SolutionDir)\..\..\libxslt\lib\libxslt.lib"
"$(SolutionDir)\..\..\icu\lib\icuuc.lib"
comctl32.lib
wininet.lib"\r
+ AdditionalDependencies="comctl32.lib wininet.lib "$(ProjectDir)\..\..\..\iconv\lib\iconv.lib" "$(ProjectDir)\..\..\..\libxml\lib\libxml2.lib" "$(ProjectDir)\..\..\..\libxslt\lib\libxslt.lib" "$(ProjectDir)\..\..\..\icu\lib\icuuc.lib""\r
LinkIncremental="2"\r
+ AdditionalLibraryDirectories=""\r
GenerateDebugInformation="true"\r
SubSystem="2"\r
TargetMachine="1"\r
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\..\..\WebCore";"$(SolutionDir)\..\..\WebCore\loader";"$(SolutionDir)\..\..\WebCore\khtml\dom";"$(SolutionDir)\..\..\WebCore\khtml\ecma";"$(SolutionDir)\..\..\WebCore\html";"$(SolutionDir)\..\..\WebCore\khtml";"$(SolutionDir)\..\..\WebCore\css";"$(SolutionDir)\..\..\WebCore\khtml\misc";"$(SolutionDir)\..\..\WebCore\platform";"$(SolutionDir)\..\..\WebCore\bridge\win";"$(SolutionDir)\..\..\WebCore\page";"$(SolutionDir)\..\..\WebCore\bridge";"$(SolutionDir)\..\..\WebCore\platform\cairo\cairo\src";"$(SolutionDir)\..\..\WebCore\platform\win";"$(SolutionDir)\..\..\WebCore\rendering";"$(SolutionDir)\..\..\WebCore\editing";"$(SolutionDir)\..\..\WebCore\dom";"$(SolutionDir)\..\..\WebCore\xml";"$(SolutionDir)\..\..\WebCore\kwq";"$(SolutionDir)\..\..\iconv";"$(SolutionDir)\..\..\libxml2";"$(SolutionDir)\..\..\icu\include";"$(SolutionDir)\..\..\JavaScriptCore";"$(SolutionDir)\..\..\JavaScriptCore\os-win32";"$(SolutionDir)\..\..\JavaScriptCore\kxmlcore";"$(SolutionDir)\..\..\WebCore\ForwardingHeaders""\r
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"\r
+ AdditionalIncludeDirectories=""$(ProjectDir)\..\..\..\WebCore";"$(ProjectDir)\..\..\..\WebCore\loader";"$(ProjectDir)\..\..\..\WebCore\khtml\dom";"$(ProjectDir)\..\..\..\WebCore\khtml\ecma";"$(ProjectDir)\..\..\..\WebCore\html";"$(ProjectDir)\..\..\..\WebCore\khtml";"$(ProjectDir)\..\..\..\WebCore\css";"$(ProjectDir)\..\..\..\WebCore\khtml\misc";"$(ProjectDir)\..\..\..\WebCore\platform";"$(ProjectDir)\..\..\..\WebCore\bridge\win";"$(ProjectDir)\..\..\..\WebCore\page";"$(ProjectDir)\..\..\..\WebCore\bridge";"$(ProjectDir)\..\..\..\WebCore\platform\cairo\cairo\src";"$(ProjectDir)\..\..\..\WebCore\platform\win";"$(ProjectDir)\..\..\..\WebCore\rendering";"$(ProjectDir)\..\..\..\WebCore\editing";"$(ProjectDir)\..\..\..\WebCore\dom";"$(ProjectDir)\..\..\..\WebCore\xml";"$(ProjectDir)\..\..\..\WebCore\kwq";"$(ProjectDir)\..\..\..\iconv";"$(ProjectDir)\..\..\..\libxml2";"$(ProjectDir)\..\..\..\icu\include";"$(ProjectDir)\..\..\..\JavaScriptCore";"$(ProjectDir)\..\..\..\JavaScriptCore\os-win32";"$(ProjectDir)\..\..\..\JavaScriptCore\kxmlcore";"$(ProjectDir)\..\..\..\WebCore\ForwardingHeaders""\r
+ PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE"\r
+ ExceptionHandling="0"\r
RuntimeLibrary="2"\r
+ RuntimeTypeInfo="false"\r
UsePrecompiledHeader="2"\r
WarningLevel="1"\r
Detect64BitPortabilityProblems="false"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalOptions=""$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\WebCore.lib"
"$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\JavaScriptCore.lib"
"$(SolutionDir)\..\..\iconv\lib\iconv.lib"
"$(SolutionDir)\..\..\libxml\lib\libxml2.lib"
"$(SolutionDir)\..\..\libxslt\lib\libxslt.lib"
"$(SolutionDir)\..\..\icu\lib\icuuc.lib"
comctl32.lib
wininet.lib"\r
+ AdditionalOptions=""$(ProjectDir)\..\..\..\iconv\lib\iconv.lib"
"$(ProjectDir)\..\..\..\libxml\lib\libxml2.lib"
"$(ProjectDir)\..\..\..\libxslt\lib\libxslt.lib"
"$(ProjectDir)\..\..\..\icu\lib\icuuc.lib"
"\r
+ AdditionalDependencies="comctl32.lib wininet.lib "$(ProjectDir)\..\..\..\iconv\lib\iconv.lib" "$(ProjectDir)\..\..\..\libxml\lib\libxml2.lib" "$(ProjectDir)\..\..\..\libxslt\lib\libxslt.lib" "$(ProjectDir)\..\..\..\icu\lib\icuuc.lib""\r
LinkIncremental="1"\r
+ AdditionalLibraryDirectories=""$(ProjectDir)\..\..\..\""\r
GenerateDebugInformation="true"\r
SubSystem="2"\r
OptimizeReferences="2"\r
WebFramePrivate() { }
~WebFramePrivate() { }
- Frame* frame;
- FrameView* frameView;
+ RefPtr<Frame> frame;
+ RefPtr<FrameView> frameView;
WebView* webView;
};
: d(new WebFrame::WebFramePrivate)
{
d->webView = view;
- Page *page = new Page();
- d->frame = new FrameWin(page, 0, this);
- page->setMainFrame(d->frame);
- d->frameView = new FrameView(d->frame);
- d->frame->setView(d->frameView);
+ Page* page = new Page();
+ Frame* frame = new FrameWin(page, 0, this);
+ d->frame = frame;
+ frame->deref(); // Frames are created with a refcount of 1. Release this ref, since we've assigned it to a RefPtr
+ page->setMainFrame(frame);
+ FrameView* frameView = new FrameView(frame);
+ d->frameView = frameView;
+ frameView->deref(); // FrameViews are created with a refcount of 1. Release this ref, since we've assigned it to a RefPtr
+ d->frame->setView(frameView);
d->frameView->setWindowHandle(view->windowHandle());
}
+WebFrame::~WebFrame()
+{
+ delete d->frame->page();
+ delete d;
+}
+
void WebFrame::loadFilePath(char* path)
{
char URL[2048];
WebCore::Frame* WebFrame::impl()
{
- return d->frame;
+ return d->frame.get();
}
}
class WebFrame : public WebCore::TransferJobClient, public WebCore::FrameWinClient {
public:
WebFrame(char* name, WebView*);
+ ~WebFrame();
void loadFilePath(char*);
void loadHTMLString(char* html, char* baseURL = 0);
#include <memory.h>
#include <tchar.h>
-
-// TODO: reference additional headers your program requires here
+#if 0
+// Visual Studio Leak Detection
+// <http://msdn2.microsoft.com/en-US/library/e5ewb1h3.aspx>
+#if defined(_MSC_VER) && defined(_DEBUG)
+#define _CRTDBG_MAP_ALLOC
+#include <stdlib.h>
+#include <crtdbg.h>
+#endif
+#endif