Mercurial > pidgin.yaz
comparison src/gtkmain.c @ 13833:571aebbe5ec6
[gaim-migrate @ 16282]
SF Patch #1502594 from Yosef Radchenko
"Patches three instances of memory leaks with gaim_accounts_get_all_active"
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 19 Jun 2006 05:39:30 +0000 |
parents | 0cc7773b1d87 |
children | dabbcb9b013d |
comparison
equal
deleted
inserted
replaced
13832:d1fdde7cfc0a | 13833:571aebbe5ec6 |
---|---|
430 char *opt_config_dir_arg = NULL; | 430 char *opt_config_dir_arg = NULL; |
431 char *opt_login_arg = NULL; | 431 char *opt_login_arg = NULL; |
432 char *opt_session_arg = NULL; | 432 char *opt_session_arg = NULL; |
433 int dologin_ret = -1; | 433 int dologin_ret = -1; |
434 char *search_path; | 434 char *search_path; |
435 GList *accounts; | |
435 #ifdef HAVE_SIGNAL_H | 436 #ifdef HAVE_SIGNAL_H |
436 int sig_indx; /* for setting up signal catching */ | 437 int sig_indx; /* for setting up signal catching */ |
437 sigset_t sigset; | 438 sigset_t sigset; |
438 RETSIGTYPE (*prev_sig_disp)(int); | 439 RETSIGTYPE (*prev_sig_disp)(int); |
439 #endif | 440 #endif |
750 if (!gaim_prefs_get_bool("/core/savedstatus/startup_current_status")) | 751 if (!gaim_prefs_get_bool("/core/savedstatus/startup_current_status")) |
751 gaim_savedstatus_activate(gaim_savedstatus_get_startup()); | 752 gaim_savedstatus_activate(gaim_savedstatus_get_startup()); |
752 gaim_accounts_restore_current_statuses(); | 753 gaim_accounts_restore_current_statuses(); |
753 } | 754 } |
754 | 755 |
755 if (gaim_accounts_get_all_active() == NULL) | 756 if ((accounts = gaim_accounts_get_all_active()) == NULL) |
756 { | 757 { |
757 gaim_gtk_accounts_window_show(); | 758 gaim_gtk_accounts_window_show(); |
758 } | 759 } |
760 else | |
761 { | |
762 g_list_free(accounts); | |
763 } | |
759 | 764 |
760 #ifdef HAVE_STARTUP_NOTIFICATION | 765 #ifdef HAVE_STARTUP_NOTIFICATION |
761 startup_notification_complete(); | 766 startup_notification_complete(); |
762 #endif | 767 #endif |
763 | 768 |