Bug 1000961 - Make DBusReplyHandler use thread-safe ref-counting. r=echou, a=sledru
--- a/ipc/dbus/DBusUtils.h
+++ b/ipc/dbus/DBusUtils.h
@@ -53,17 +53,17 @@ private:
};
/**
* DBusReplyHandler represents a handler for DBus reply messages. Inherit
* from this class and implement the Handle method. The method Callback
* should be passed to the DBus send function, with the class instance as
* user-data argument.
*/
-class DBusReplyHandler : public mozilla::RefCounted<DBusReplyHandler>
+class DBusReplyHandler : public mozilla::AtomicRefCounted<DBusReplyHandler>
{
public:
MOZ_DECLARE_REFCOUNTED_TYPENAME(DBusReplyHandler)
virtual ~DBusReplyHandler() {
}
/**
* Implements a call-back function for DBus. The supplied value for