Closed
Bug 726741
Opened 13 years ago
Closed 13 years ago
We leak nsPluginInstanceOwner for every plugin instance on ICS
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 13
People
(Reporter: snorp, Assigned: snorp)
Details
Attachments
(1 file)
4.92 KB,
patch
|
jaas
:
review+
|
Details | Diff | Splinter Review |
In a few ANP interfaces, we request the nsPluginInstanceOwner* via nsNPAPIPluginInstance::GetOwner. GetOwner() refs the return, but we don't explicitly unref or use nsRefPtr, and the object is leaked later when the plugin instance is destroyed.
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #596751 -
Flags: review?(joshmoz)
Comment on attachment 596751 [details] [diff] [review]
Don't leak nsPluginInstanceOwner on Android
Review of attachment 596751 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/plugins/base/android/ANPVideo.cpp
@@ +42,5 @@
> +}
> +
> +static AndroidMediaLayer* GetLayerForInstance(NPP instance) {
> + nsRefPtr<nsPluginInstanceOwner> owner;
> + if (NS_FAILED(GetOwner(instance, getter_AddRefs(owner))))
I prefer always having braces for if blocks.
Attachment #596751 -
Flags: review?(joshmoz) → review+
Assignee | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•