Mercurial > pidgin.yaz
comparison src/session.c @ 4210:e11393a176d5
[gaim-migrate @ 4447]
when you create a string, its a good thing to store it somewhere. niqueco caught this
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 06 Jan 2003 00:23:47 +0000 |
parents | a638bc9454a6 |
children | 65a859488240 |
comparison
equal
deleted
inserted
replaced
4209:814023d5d0b3 | 4210:e11393a176d5 |
---|---|
24 */ | 24 */ |
25 | 25 |
26 #ifdef HAVE_CONFIG_H | 26 #ifdef HAVE_CONFIG_H |
27 #include <config.h> | 27 #include <config.h> |
28 #endif | 28 #endif |
29 | |
30 #include <string.h> | |
29 | 31 |
30 #include "gaim.h" | 32 #include "gaim.h" |
31 | 33 |
32 #ifdef USE_SM | 34 #ifdef USE_SM |
33 | 35 |
290 g_free(tmp); | 292 g_free(tmp); |
291 | 293 |
292 session_managed = TRUE; | 294 session_managed = TRUE; |
293 gdk_set_sm_client_id(client_id); | 295 gdk_set_sm_client_id(client_id); |
294 | 296 |
295 g_strdup_printf("%d", (int) getpid()); | 297 tmp = g_strdup_printf("%d", (int) getpid()); |
296 session_set_string(session, SmProcessID, tmp); | 298 session_set_string(session, SmProcessID, tmp); |
297 g_free(tmp); | 299 g_free(tmp); |
298 | 300 |
299 g_strdup(g_get_user_name()); | 301 tmp = g_strdup(g_get_user_name()); |
300 session_set_string(session, SmUserID, tmp); | 302 session_set_string(session, SmUserID, tmp); |
301 g_free(tmp); | 303 g_free(tmp); |
302 | 304 |
303 session_set_gchar(session, SmRestartStyleHint, (gchar) SmRestartIfRunning); | 305 session_set_gchar(session, SmRestartStyleHint, (gchar) SmRestartIfRunning); |
304 session_set_string(session, SmProgram, g_get_prgname()); | 306 session_set_string(session, SmProgram, g_get_prgname()); |