diff options
author | Monsta <[email protected]> | 2014-11-16 16:41:16 +0300 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-11-16 15:39:22 +0100 |
commit | 2a99324f597755c8acfdff217960c68353c29d52 (patch) | |
tree | c5500a692ca7607e0535877578f4c3389207ac31 /src/gpm-manager.c | |
parent | f71fafdaca836c8251a55b1b241aad65ff3bec1f (diff) | |
download | mate-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-manager.c')
-rw-r--r-- | src/gpm-manager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c index 09bd0c0..9024d37 100644 --- a/src/gpm-manager.c +++ b/src/gpm-manager.c @@ -1673,8 +1673,10 @@ gpm_manager_engine_charge_action_cb (GpmEngine *engine, UpDevice *device, GpmMan } /* not all types have actions */ - if (title == NULL) + if (title == NULL) { + g_free (message); return; + } /* get correct icon */ icon = gpm_upower_get_device_icon (device); |