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,7 +29,8 @@ public:
|
|||||||
|
|
||||||
~wxWebKitJavascriptResult()
|
~wxWebKitJavascriptResult()
|
||||||
{
|
{
|
||||||
webkit_javascript_result_unref(m_jsresult);
|
if ( m_jsresult != NULL )
|
||||||
|
webkit_javascript_result_unref(m_jsresult);
|
||||||
}
|
}
|
||||||
|
|
||||||
operator WebKitJavascriptResult *() const { return m_jsresult; }
|
operator WebKitJavascriptResult *() const { return m_jsresult; }
|
||||||
|
Reference in New Issue
Block a user