comparison mcabber/src/screen.c @ 898:c65b71dcda94

Fix memory leak in scr_UpdateWindow()
author Mikael Berthe <mikael@lilotux.net>
date Thu, 08 Jun 2006 21:42:52 +0200
parents a05b5a16a06a
children f4bf564893b5
comparison
equal deleted inserted replaced
897:a05b5a16a06a 898:c65b71dcda94
570 570
571 if (line->flags & HBB_PREFIX_HLIGHT) 571 if (line->flags & HBB_PREFIX_HLIGHT)
572 wattrset(win_entry->win, get_color(COLOR_GENERAL)); 572 wattrset(win_entry->win, get_color(COLOR_GENERAL));
573 wclrtoeol(win_entry->win); 573 wclrtoeol(win_entry->win);
574 g_free(line->text); 574 g_free(line->text);
575 g_free(line);
575 } else { 576 } else {
576 wclrtobot(win_entry->win); 577 wclrtobot(win_entry->win);
577 break; 578 break;
578 } 579 }
579 } 580 }