diff options
author | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2014-04-15 19:56:21 +0100 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2014-04-15 19:56:21 +0100 |
commit | bc975c216fcbd442ce360a17e83cbcdb4649688d (patch) | |
tree | 7d890f4ed57d42c894b3470fe2528c619f50a929 /src/gclue-modem-gps.c | |
parent | eb594ab2fd8154aa108e7488a38fe74ac8c8e43b (diff) | |
download | geoclue-bc975c216fcbd442ce360a17e83cbcdb4649688d.tar.gz |
all sources: Chain-up finalize before own cleanup
This will ensure that baseclass will stops the source before the source
free the resources that might be needed for stopping the source.
Diffstat (limited to 'src/gclue-modem-gps.c')
-rw-r--r-- | src/gclue-modem-gps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gclue-modem-gps.c b/src/gclue-modem-gps.c index 3e9d6da..1cec65a 100644 --- a/src/gclue-modem-gps.c +++ b/src/gclue-modem-gps.c @@ -53,11 +53,11 @@ gclue_modem_gps_finalize (GObject *ggps) { GClueModemGPSPrivate *priv = GCLUE_MODEM_GPS (ggps)->priv; + G_OBJECT_CLASS (gclue_modem_gps_parent_class)->finalize (ggps); + g_cancellable_cancel (priv->cancellable); g_clear_object (&priv->cancellable); g_clear_object (&priv->gps_raw); - - G_OBJECT_CLASS (gclue_modem_gps_parent_class)->finalize (ggps); } static void |