Fix memory leak in wxWebKitJavascriptResult
We need to unref the result wrapped by this object in its dtor.
This commit is contained in:
committed by
Vadim Zeitlin
parent
f7c4677cb2
commit
bea13d68c0
@@ -29,6 +29,7 @@ public:
|
|||||||
|
|
||||||
~wxWebKitJavascriptResult()
|
~wxWebKitJavascriptResult()
|
||||||
{
|
{
|
||||||
|
if ( m_jsresult != NULL )
|
||||||
webkit_javascript_result_unref(m_jsresult);
|
webkit_javascript_result_unref(m_jsresult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user