Closed Bug 1965406 Opened 7 days ago Closed 6 days ago

nsGIOService::GetAppForURIScheme is leaking DBus proxy object

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: jgrulich, Assigned: jgrulich)

Details

Attachments

(1 file)

The code does:

RefPtr<GDBusProxy> proxy;
proxy = g_dbus_proxy_new_for_bus_sync(...);

But needs to be:

RefPtr<GDBusProxy> proxy;
proxy = dont_AddRef(g_dbus_proxy_new_for_bus_sync(...));

in order not to leak the created GDBusProxy object.

Assignee: nobody → jgrulich
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d6d92bf3e6d4 Don't leak GDBusProxy object in nsGIOService r=emilio,stransky
Status: NEW → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: