diff options
Diffstat (limited to 'tests/src/test-script-hook.c')
-rw-r--r-- | tests/src/test-script-hook.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/src/test-script-hook.c b/tests/src/test-script-hook.c index e0d72084..abaf8543 100644 --- a/tests/src/test-script-hook.c +++ b/tests/src/test-script-hook.c @@ -9,7 +9,7 @@ static GKeyFile *config; int main (int argc, char **argv) { - GString *status_text; + g_autoptr(GString) status_text = NULL; #if !defined(GLIB_VERSION_2_36) g_type_init (); @@ -31,7 +31,6 @@ main (int argc, char **argv) if (g_getenv ("USER")) g_string_append_printf (status_text, " USER=%s", g_getenv ("USER")); status_notify ("%s", status_text->str); - g_string_free (status_text, TRUE); if (argc > 2) return atoi (argv[2]); |