summaryrefslogtreecommitdiff
path: root/src/gpm-main.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-16 16:41:16 +0300
committerStefano Karapetsas <[email protected]>2014-11-16 15:39:22 +0100
commit2a99324f597755c8acfdff217960c68353c29d52 (patch)
treec5500a692ca7607e0535877578f4c3389207ac31 /src/gpm-main.c
parentf71fafdaca836c8251a55b1b241aad65ff3bec1f (diff)
downloadmate-power-manager-2a99324f597755c8acfdff217960c68353c29d52.tar.bz2
mate-power-manager-2a99324f597755c8acfdff217960c68353c29d52.tar.xz
don't leak memory
Closes https://github.com/mate-desktop/mate-power-manager/pull/115
Diffstat (limited to 'src/gpm-main.c')
-rw-r--r--src/gpm-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpm-main.c b/src/gpm-main.c
index 71ba598..30cf481 100644
--- a/src/gpm-main.c
+++ b/src/gpm-main.c
@@ -243,7 +243,7 @@ main (int argc, char *argv[])
if (!gpm_object_register (session_connection, G_OBJECT (manager))) {
egg_error ("%s is already running in this session.", GPM_NAME);
- return 0;
+ goto unref_program;
}
/* register to be a policy agent, just like kpackagekit does */