Mercurial > pidgin
changeset 12168:dd7392cce819
[gaim-migrate @ 14469]
SF Patch #1361804 from Sadrul
"Extplacement plugin causes crash when the very first
conv-window opens."
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 20 Nov 2005 12:48:31 +0000 |
parents | 5851a9219bc7 |
children | 829203b89200 |
files | plugins/extplacement.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/extplacement.c Sun Nov 20 00:59:36 2005 +0000 +++ b/plugins/extplacement.c Sun Nov 20 12:48:31 2005 +0000 @@ -32,11 +32,12 @@ conv_placement_by_number(GaimGtkConversation *conv) { GaimGtkWindow *win = NULL; + GList *wins = NULL; if (gaim_prefs_get_bool("/plugins/gtk/extplacement/placement_number_separate")) win = gaim_gtk_conv_window_last_with_type(gaim_conversation_get_type(conv->active_conv)); - else - win = g_list_last(gaim_gtk_conv_windows_get_list())->data; + else if ((wins = gaim_gtk_conv_windows_get_list()) != NULL) + win = g_list_last(wins)->data; if (win == NULL) { win = gaim_gtk_conv_window_new();