Fix a memory leak in libSM use.
authorAndrej Kacian <ticho@claws-mail.org>
Sun, 9 Jul 2017 21:55:29 +0000 (23:55 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sun, 9 Jul 2017 21:55:29 +0000 (23:55 +0200)
src/main.c

index 331f7e0..a35b94a 100644 (file)
@@ -652,6 +652,7 @@ static void sc_session_manager_connect(MainWindow *mainwin)
                        vals[0].value = g_strdup(g_get_user_name()?g_get_user_name():"");
                        sc_client_set_value (mainwin, SmUserID, SmARRAY8, 1, vals);
 
+                       g_free(vals[0].value);
                        g_free(vals);
                }
        }