summaryrefslogtreecommitdiff
path: root/src/gs-lock-plug.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-08 15:05:17 +0300
committerinfirit <[email protected]>2014-11-28 14:53:12 +0100
commit94aecb2f6832701add2c93cf87dadcd510764604 (patch)
tree9d934e41088463301ca85b3cc7e29c0defca7c44 /src/gs-lock-plug.c
parent19aa553b919f336c5f44e59451f52b6f679b953b (diff)
downloadmate-screensaver-94aecb2f6832701add2c93cf87dadcd510764604.tar.bz2
mate-screensaver-94aecb2f6832701add2c93cf87dadcd510764604.tar.xz
don't leak memory
Diffstat (limited to 'src/gs-lock-plug.c')
-rw-r--r--src/gs-lock-plug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index 1efaeab..91fac54 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -490,6 +490,10 @@ gs_lock_plug_get_text (GSLockPlug *plug,
{
*text = local_text;
}
+ else
+ {
+ g_free (local_text);
+ }
}
typedef struct