mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 413325 nsNativeRootAccessibleWrap doesn't release ref of AtkObject of dialogs r=aaronleventhal
This commit is contained in:
parent
2641f01d3d
commit
2d6ba3a46f
@ -302,6 +302,7 @@ nsAccessibleWrap::nsAccessibleWrap(nsIDOMNode* aNode,
|
|||||||
|
|
||||||
nsAccessibleWrap::~nsAccessibleWrap()
|
nsAccessibleWrap::~nsAccessibleWrap()
|
||||||
{
|
{
|
||||||
|
NS_ASSERTION(!mAtkObject, "ShutdownAtkObject() is not called");
|
||||||
|
|
||||||
#ifdef MAI_LOGGING
|
#ifdef MAI_LOGGING
|
||||||
++mAccWrapDeleted;
|
++mAccWrapDeleted;
|
||||||
|
@ -46,5 +46,11 @@ nsNativeRootAccessibleWrap::nsNativeRootAccessibleWrap(AtkObject *aAccessible):
|
|||||||
nsRootAccessible(nsnull, nsnull)
|
nsRootAccessible(nsnull, nsnull)
|
||||||
{
|
{
|
||||||
g_object_ref(aAccessible);
|
g_object_ref(aAccessible);
|
||||||
nsAccessibleWrap::mAtkObject = aAccessible;
|
mAtkObject = aAccessible;
|
||||||
|
}
|
||||||
|
|
||||||
|
nsNativeRootAccessibleWrap::~nsNativeRootAccessibleWrap()
|
||||||
|
{
|
||||||
|
g_object_unref(mAtkObject);
|
||||||
|
mAtkObject = nsnull;
|
||||||
}
|
}
|
||||||
|
@ -55,6 +55,7 @@ class nsNativeRootAccessibleWrap: public nsRootAccessible
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
nsNativeRootAccessibleWrap(AtkObject *aAccessible);
|
nsNativeRootAccessibleWrap(AtkObject *aAccessible);
|
||||||
|
~nsNativeRootAccessibleWrap();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* __NS_ROOT_ACCESSIBLE_WRAP_H__ */
|
#endif /* __NS_ROOT_ACCESSIBLE_WRAP_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user