aboutsummaryrefslogtreecommitdiff
path: root/src/gtk-logout-helper.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-06-14 11:50:54 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-06-14 11:50:54 -0500
commit51c302dfe676c363ad1e35baec563366340a6d34 (patch)
tree588cdf2d1111f978cc19d6280f283eba69d42bbb /src/gtk-logout-helper.c
parent9e64d9ac0e796355361f9547da58398d2521fec2 (diff)
downloadayatana-indicator-session-51c302dfe676c363ad1e35baec563366340a6d34.tar.gz
ayatana-indicator-session-51c302dfe676c363ad1e35baec563366340a6d34.tar.bz2
ayatana-indicator-session-51c302dfe676c363ad1e35baec563366340a6d34.zip
use g_clear_object()
Diffstat (limited to 'src/gtk-logout-helper.c')
-rw-r--r--src/gtk-logout-helper.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gtk-logout-helper.c b/src/gtk-logout-helper.c
index 8b8ff8f..4f23ba2 100644
--- a/src/gtk-logout-helper.c
+++ b/src/gtk-logout-helper.c
@@ -137,10 +137,7 @@ session_action (LogoutDialogType action)
}
g_object_unref(sm_proxy);
-
- if (error != NULL) {
- g_error_free(error);
- }
+ g_clear_error (&error);
return;
}