diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2014-08-02 06:24:24 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-08-02 12:53:34 +0200 |
commit | d658e3be3a2e2402393f0ace64e4a03dd5c73a69 (patch) | |
tree | 4f8b4bdbcb869829b8dd9b6568f6cc17638afcd4 | |
parent | 2c64635dd8dae2ecb4d5c684353f606f0f268797 (diff) | |
download | libmbim-d658e3be3a2e2402393f0ace64e4a03dd5c73a69.tar.gz |
libmbim-glib: destroy iochannel on dispose
-rw-r--r-- | src/libmbim-glib/mbim-device.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libmbim-glib/mbim-device.c b/src/libmbim-glib/mbim-device.c index d672a12..79ba5f4 100644 --- a/src/libmbim-glib/mbim-device.c +++ b/src/libmbim-glib/mbim-device.c @@ -2117,6 +2117,8 @@ dispose (GObject *object) g_clear_object (&self->priv->file); + destroy_iochannel (self, NULL); + G_OBJECT_CLASS (mbim_device_parent_class)->dispose (object); } @@ -2138,12 +2140,6 @@ finalize (GObject *object) g_free (self->priv->path); g_free (self->priv->path_display); - if (self->priv->watch_id) - g_source_remove (self->priv->watch_id); - if (self->priv->response) - g_byte_array_unref (self->priv->response); - if (self->priv->iochannel) - g_io_channel_unref (self->priv->iochannel); G_OBJECT_CLASS (mbim_device_parent_class)->finalize (object); } |