diff options
Diffstat (limited to 'telepathy-logger/dbus-service.c')
-rw-r--r-- | telepathy-logger/dbus-service.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/telepathy-logger/dbus-service.c b/telepathy-logger/dbus-service.c index 0cd4e2c3b..fc94131bb 100644 --- a/telepathy-logger/dbus-service.c +++ b/telepathy-logger/dbus-service.c @@ -28,6 +28,7 @@ #include <telepathy-logger/log-entry-text.h> #include <telepathy-logger/log-manager.h> +#include <telepathy-logger/util.h> #include <extensions/extensions.h> @@ -197,8 +198,11 @@ tpl_dbus_service_get_recent_messages (TplSvcLogger *self, tpl_svc_logger_return_from_get_recent_messages (context, packed); out: - tpl_object_unref_if_not_null (account); - tpl_object_unref_if_not_null (tp_dbus); + if (account != NULL) + g_object_unref (account); + + if (tp_dbus != NULL) + g_object_unref (tp_dbus); } |