Bug 999884 - Make DBusReplyHandler not use mozilla::RefCounted; r=smaug

--HG--
extra : rebase_source : 3b48a1e8cba18af2871a34b0ef36f2d548dfcc85
This commit is contained in:
Ehsan Akhgari 2014-04-23 17:47:22 -04:00
parent 302290bece
commit 78aec23d8b

View File

@ -58,12 +58,10 @@ private:
* 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:
MOZ_DECLARE_REFCOUNTED_TYPENAME(DBusReplyHandler)
virtual ~DBusReplyHandler() {
}
NS_INLINE_DECL_REFCOUNTING(DBusReplyHandler)
/**
* Implements a call-back function for DBus. The supplied value for
@ -89,6 +87,10 @@ protected:
{
return *this;
}
virtual ~DBusReplyHandler()
{
}
};
void log_and_free_dbus_error(DBusError* err,