[gjs: 3/4] gdbus-wrapper: Destroy the outstanding properties map on finalize
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 3/4] gdbus-wrapper: Destroy the outstanding properties map on finalize
- Date: Fri, 26 Jul 2019 01:35:56 +0000 (UTC)
commit 181dd3f14406b2166a1beaedb60c6b1e3f574717
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Tue Jul 23 17:40:53 2019 +0200
gdbus-wrapper: Destroy the outstanding properties map on finalize
Since we're finalizing the object, better to be just destroy the table
libgjs-private/gjs-gdbus-wrapper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgjs-private/gjs-gdbus-wrapper.c b/libgjs-private/gjs-gdbus-wrapper.c
index b57bb7c8..cffc1b38 100644
--- a/libgjs-private/gjs-gdbus-wrapper.c
+++ b/libgjs-private/gjs-gdbus-wrapper.c
@@ -177,7 +177,7 @@ gjs_dbus_implementation_finalize(GObject *object) {
GjsDBusImplementation *self = GJS_DBUS_IMPLEMENTATION (object);
g_dbus_interface_info_unref (self->priv->ifaceinfo);
- g_hash_table_unref (self->priv->outstanding_properties);
+ g_hash_table_destroy(self->priv->outstanding_properties);
G_OBJECT_CLASS(gjs_dbus_implementation_parent_class)->finalize(object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]