]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
free scrollbars
authorewt <ewt>
Fri, 5 Mar 1999 23:28:09 +0000 (23:28 +0000)
committerewt <ewt>
Fri, 5 Mar 1999 23:28:09 +0000 (23:28 +0000)
listbox.c

index 7bacc3c017e6a455cefe5e6aa82e896f5d9ba76b..68efbcebd082d25f3f3af5a5366fed1aa4ee1b7f 100644 (file)
--- a/listbox.c
+++ b/listbox.c
@@ -745,6 +745,8 @@ static void listboxDestroy(newtComponent co) {
        item = nextitem;
     }
 
+    if (li->sb) li->sb->ops->destroy(li->sb);
+
     free(li);
     free(co);
 }