mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
potential crash fix..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1451 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7acb8fa027
commit
cb4ce9f1b2
@ -845,7 +845,8 @@ static void view_bookmarks_check(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
|
|||||||
|
|
||||||
if (rec.remove_list != NULL) {
|
if (rec.remove_list != NULL) {
|
||||||
GList *pos = g_list_find(view->buffer->lines, line);
|
GList *pos = g_list_find(view->buffer->lines, line);
|
||||||
newline = pos->prev == NULL ? NULL : pos->next->data;
|
newline = pos == NULL || pos->prev == NULL ? NULL :
|
||||||
|
pos->next->data;
|
||||||
for (tmp = rec.remove_list; tmp != NULL; tmp = tmp->next) {
|
for (tmp = rec.remove_list; tmp != NULL; tmp = tmp->next) {
|
||||||
g_hash_table_remove(view->bookmarks, tmp->data);
|
g_hash_table_remove(view->bookmarks, tmp->data);
|
||||||
if (newline != NULL) {
|
if (newline != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user