diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-02-13 14:26:23 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-02-13 14:26:23 -0600 |
commit | aee1300b7e026c7724859c019599ea3739721c78 (patch) | |
tree | 87b66cddb65f1324a37ad3ba6f0ec11dd28e2ffd /src | |
parent | 8be6c2d51d4927d524370b4f5bab39b6e72bbc0d (diff) | |
download | ayatana-indicator-power-aee1300b7e026c7724859c019599ea3739721c78.tar.gz ayatana-indicator-power-aee1300b7e026c7724859c019599ea3739721c78.tar.bz2 ayatana-indicator-power-aee1300b7e026c7724859c019599ea3739721c78.zip |
ensure that we don't have a reference to the proxy or proxy_cancel fields in indicator_power_dispose().
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-power.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c index ee20362..f7de038 100644 --- a/src/indicator-power.c +++ b/src/indicator-power.c @@ -158,6 +158,9 @@ indicator_power_dispose (GObject *object) self->device = NULL; } + g_clear_object (&self->proxy); + g_clear_object (&self->proxy_cancel); + g_clear_object (&self->settings); G_OBJECT_CLASS (indicator_power_parent_class)->dispose (object); |