mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
[tfman] free up docstructure
This commit is contained in:
parent
f2677e2366
commit
c2c61172f2
@ -758,10 +758,10 @@ draw_domnode(struct ncplane* p, const pagedom* dom, const pagenode* n,
|
||||
// very fast moves.
|
||||
static int
|
||||
draw_content(struct ncplane* stdn, struct ncplane* p){
|
||||
const pagedom* dom = ncplane_userptr(p);
|
||||
pagedom* dom = ncplane_userptr(p);
|
||||
unsigned wrotetext = 0; // unused by us
|
||||
struct docstructure* ds = docstructure_create(stdn);
|
||||
if(ds == NULL){
|
||||
dom->ds = docstructure_create(stdn);
|
||||
if(dom->ds == NULL){
|
||||
return -1;
|
||||
}
|
||||
return draw_domnode(p, dom, dom->root, &wrotetext);
|
||||
|
Loading…
Reference in New Issue
Block a user