Fix memory leak in AtkTableCell interface
When creating GPtrArrays for this interface, we should create them with a proper destruction function, so that the AtkObjects they contain are properly dereferenced. Also, when calling these functions internally, we should dereference the return value. Finally, we remove IdsToGPtrArray, because it is easy to misuse, for example, by passing in a GPtrArray that does not have a proper destruction function. This is an issue because IdsToGPtrArray added AtkObjects to the array and increased their reference count. Bug: 971966 Change-Id: I7b4358c0558b2e0489ab9fb7442f4d97d45e6951 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1649164 Commit-Queue: Martin Robinson <mrobinson@igalia.com> Reviewed-by:Joanmarie Diggs <jdiggs@igalia.com> Cr-Commit-Position: refs/heads/master@{#667101}
Showing
Please register or sign in to comment