Mercurial > hg
comparison mcabber/src/hbuf.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 | 92aaf2af786b |
children | a07bd351008b |
comparison
equal
deleted
inserted
replaced
897:a05b5a16a06a | 898:c65b71dcda94 |
---|---|
243 } | 243 } |
244 | 244 |
245 // hbuf_get_lines(hbuf, n) | 245 // hbuf_get_lines(hbuf, n) |
246 // Returns an array of n hbb_line pointers | 246 // Returns an array of n hbb_line pointers |
247 // (The first line will be the line currently pointed by hbuf) | 247 // (The first line will be the line currently pointed by hbuf) |
248 // Note: The caller should free the array and the text pointers after use. | 248 // Note: The caller should free the array, the hbb_line pointers and the |
249 // text pointers after use. | |
249 hbb_line **hbuf_get_lines(GList *hbuf, unsigned int n) | 250 hbb_line **hbuf_get_lines(GList *hbuf, unsigned int n) |
250 { | 251 { |
251 unsigned int i; | 252 unsigned int i; |
252 hbuf_block *blk; | 253 hbuf_block *blk; |
253 guchar last_persist_prefixflags = 0; | 254 guchar last_persist_prefixflags = 0; |