Commit 362c5aae authored by zandobersek@gmail.com's avatar zandobersek@gmail.com
Browse files

[Gtk] Several tests launch g_object_ref/unref assertion messages

https://bugs.webkit.org/show_bug.cgi?id=95062

Reviewed by Martin Robinson.

Only increase and decrease reference count of the accessibility
UI element if it actually exists.

* DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
(AccessibilityUIElement::AccessibilityUIElement):
(AccessibilityUIElement::~AccessibilityUIElement):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c72a8bf4
2012-10-02 Zan Dobersek <zandobersek@gmail.com>
[Gtk] Several tests launch g_object_ref/unref assertion messages
https://bugs.webkit.org/show_bug.cgi?id=95062
Reviewed by Martin Robinson.
Only increase and decrease reference count of the accessibility
UI element if it actually exists.
* DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
(AccessibilityUIElement::AccessibilityUIElement):
(AccessibilityUIElement::~AccessibilityUIElement):
2012-10-02 Douglas Stockwell <dstockwell@chromium.org>
 
[chromium] running layout tests on mountainlion should use chromium TestExpectations
......@@ -56,18 +56,21 @@ static inline gchar* replaceCharactersForResults(gchar* str)
AccessibilityUIElement::AccessibilityUIElement(PlatformUIElement element)
: m_element(element)
{
g_object_ref(m_element);
if (m_element)
g_object_ref(m_element);
}
AccessibilityUIElement::AccessibilityUIElement(const AccessibilityUIElement& other)
: m_element(other.m_element)
{
g_object_ref(m_element);
if (m_element)
g_object_ref(m_element);
}
AccessibilityUIElement::~AccessibilityUIElement()
{
g_object_unref(m_element);
if (m_element)
g_object_unref(m_element);
}
void AccessibilityUIElement::getLinkedUIElements(Vector<AccessibilityUIElement>& elements)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment