mirror of
https://git.planet-casio.com/Lephenixnoir/JustUI.git
synced 2025-06-06 05:25:10 +02:00
jscrolledlist: silence two abort() insertions
This commit is contained in:
parent
c6195b1b30
commit
4d6b760b1a
1 changed files with 10 additions and 0 deletions
|
@ -24,10 +24,20 @@ jscrolledlist *jscrolledlist_create(
|
|||
jwidget_set_stretch(l, 1, 1, false);
|
||||
|
||||
l->frame = jframe_create(l);
|
||||
if(!l->frame) {
|
||||
free(l);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
jwidget_set_stretch(l->frame, 1, 1, false);
|
||||
jframe_set_align(l->frame, J_ALIGN_LEFT, J_ALIGN_TOP);
|
||||
|
||||
l->list = jlist_create(info_function, paint_function, l->frame);
|
||||
if(!l->list) {
|
||||
jwidget_destroy(l->frame);
|
||||
free(l);
|
||||
return NULL;
|
||||
}
|
||||
jwidget_set_stretch(l->list, 1, 1, false);
|
||||
|
||||
return l;
|
||||
|
|
Loading…
Add table
Reference in a new issue