# HG changeset patch # User Richard Laager # Date 1132490911 0 # Node ID dd7392cce8195bc644569f84da2d5b774f6fb8dc # Parent 5851a9219bc73f8ded27e7e8abba6212dc25ad0a [gaim-migrate @ 14469] SF Patch #1361804 from Sadrul "Extplacement plugin causes crash when the very first conv-window opens." committer: Tailor Script diff -r 5851a9219bc7 -r dd7392cce819 plugins/extplacement.c --- 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();