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()
|
||||
{
|
||||
NS_ASSERTION(!mAtkObject, "ShutdownAtkObject() is not called");
|
||||
|
||||
#ifdef MAI_LOGGING
|
||||
++mAccWrapDeleted;
|
||||
|
@ -46,5 +46,11 @@ nsNativeRootAccessibleWrap::nsNativeRootAccessibleWrap(AtkObject *aAccessible):
|
||||
nsRootAccessible(nsnull, nsnull)
|
||||
{
|
||||
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:
|
||||
nsNativeRootAccessibleWrap(AtkObject *aAccessible);
|
||||
~nsNativeRootAccessibleWrap();
|
||||
};
|
||||
|
||||
#endif /* __NS_ROOT_ACCESSIBLE_WRAP_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user