1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
Commit Graph

6991 Commits

Author SHA1 Message Date
Witold Filipczyk
157f90d1cc [quickjs] commented ref|unref 2024-08-07 17:47:35 +02:00
Witold Filipczyk
c7b3713235 [ecmascript] Debug before free context 2024-08-07 17:31:03 +02:00
Witold Filipczyk
159eda99c0 [ecmascript] Some debug statements in mujs and quickjs
mujs and quickjs have different order of executing finalizers,
so differences in (not) releasing memory.
2024-08-07 16:31:27 +02:00
Witold Filipczyk
f8c842ac70 [mujs] dom_node_unref in doctype finalizer 2024-08-06 18:18:17 +02:00
Witold Filipczyk
299a8fd5a3 [ecmascript] Swapped order of parameters for camel_to_html
The result string as the last parameter not the first one.
2024-08-06 16:58:53 +02:00
Witold Filipczyk
b5e85bc15c [mujs] collection2.c for getElementsByClassName 2024-08-05 21:05:04 +02:00
Witold Filipczyk
ff81eaa220 [mujs] More dom_node_unref after mjs_push_element.
Similar cases to quickjs.
2024-08-04 20:02:29 +02:00
Witold Filipczyk
432edc6f65 [mujs] free html_collection in collections's finalizer 2024-08-04 17:24:20 +02:00
Witold Filipczyk
1ed5cf1d86 [mujs] Free attr_name 2024-08-04 08:50:09 +02:00
Witold Filipczyk
999a2c6de7 [spideronkey] Free attr_name 2024-08-03 19:37:25 +02:00
Witold Filipczyk
e050734266 [quickjs] dom_node_unref after getElement 2024-08-03 19:29:33 +02:00
Witold Filipczyk
9d2a83b09c [ecmascript] initialise with NULL 2024-08-03 19:28:37 +02:00
Witold Filipczyk
0b671d69f7 [spidermonkey] getElement(...) followed by dom_node_unref 2024-08-03 19:27:18 +02:00
Witold Filipczyk
ae82d42318 [quickjs] element.appendChild and cloneNode 2024-07-24 21:02:16 +02:00
Witold Filipczyk
c4fe2c04ca [quickjs] Fix in createElement 2024-07-24 20:51:19 +02:00
Witold Filipczyk
ff28219a94 [quickjs] documentElement 2024-07-24 20:48:11 +02:00
Witold Filipczyk
9329b66b28 [quickjs] document.body.id 2024-07-24 20:45:49 +02:00
Witold Filipczyk
f356c05dcc [quikcjs] firstElementChild 2024-07-24 20:42:25 +02:00
Witold Filipczyk
e6bf26fa31 [quickjs] lastChild, nextSibling 2024-07-24 20:37:36 +02:00
Witold Filipczyk
eba47a3352 [quickjs] element.firstChild 2024-07-24 20:31:18 +02:00
Witold Filipczyk
1570955137 [quickjs] parentNode, parentElement .html
They pass test with --leak-check=full
2024-07-24 20:26:13 +02:00
Witold Filipczyk
7872617317 [quikcjs] previousElementSibling.html 2024-07-24 20:23:06 +02:00
Witold Filipczyk
daa753e98a [quickjs] element.previousSibling 2024-07-24 20:18:47 +02:00
Witold Filipczyk
c01339fee9 [quickjs] domparser.html passed test 2024-07-24 20:13:13 +02:00
Witold Filipczyk
4dc436e26d [quickjs] Free response_text in xhr.c finalizer 2024-07-24 18:40:58 +02:00
Witold Filipczyk
2fd55215a7 [quickjs] Commented out dom_node_ref
dom_node_ref should be added in places where is JS_SetOpaque.
2024-07-24 17:51:23 +02:00
Witold Filipczyk
80dfbd8b8e [ecmascript] Removed unused parameter from walk_tree_query_append 2024-07-23 20:48:27 +02:00
Witold Filipczyk
52de1a682c [quickjs] dom_node_ref for nodelist2 2024-07-23 20:42:11 +02:00
Witold Filipczyk
c52510fd9f [nodelist2] Free nodelist after generating values. 2024-07-23 19:01:50 +02:00
Witold Filipczyk
68a7a26418 [quickjs] Copy of collection.c as collection2.c
They differ in finalizer. collection2 is for getElementsByClassName
2024-07-22 22:01:40 +02:00
Witold Filipczyk
3609f6c90c [quickjs] memleak in getAttributeNode 2024-07-22 19:07:18 +02:00
Witold Filipczyk
7149746eb1 [quickjs] Workaround for memory leak in anchors
Check if refcnt is positive before unref node in element_finalizer.
refcnt was -1. Likely it is a bug in elinks code, but it is hard to locate it.
Also commented out ref|unref in element and document.
Collection code also changed. Array is not prototype for collection object.
2024-07-22 18:38:17 +02:00
Witold Filipczyk
95f45b7327 [quickjs] memleaks 2024-07-19 21:01:58 +02:00
Witold Filipczyk
83b3185e11 [quickjs] Memleak in doctype 2024-07-18 21:40:55 +02:00
Witold Filipczyk
8797227b19 [quickjs] unref attrs in finalizer 2024-07-18 19:41:28 +02:00
Witold Filipczyk
f91d9b3d06 [dom] dom_namednodemap_unref(attrs) not dom_node_unref(attrs) 2024-07-18 19:33:24 +02:00
Witold Filipczyk
fb30e10f91 [quickjs] Some memleaks 2024-07-17 21:41:24 +02:00
Witold Filipczyk
a2609542e6 [mujs] Free uristring in finalizer 2024-07-16 21:46:15 +02:00
Witold Filipczyk
656d8a32ea [spidermonkey] Leak in URL 2024-07-16 21:39:04 +02:00
Witold Filipczyk
ecf1b56c5f [quickjs] Free uri string 2024-07-16 21:31:46 +02:00
Witold Filipczyk
856d656d66 [spidermonkey] Free function 2024-07-16 20:16:14 +02:00
Witold Filipczyk
2988237889 [libdom] Dups 2024-07-16 19:47:27 +02:00
Witold Filipczyk
e7f2d6d908 [tests] 5 seconds was too little 2024-07-16 16:22:34 +02:00
Witold Filipczyk
0ce218f66e [ecmascript] warnings 2024-07-15 21:00:03 +02:00
Witold Filipczyk
adecd52b3a [inpfield] Cast to unsigned char * . Refs #315 2024-07-13 08:17:18 +02:00
Witold Filipczyk
00553ed5f6 [quickjs] mark_function for element 2024-07-12 21:37:17 +02:00
Witold Filipczyk
fd04e5cbb2 [ecmascript] Removed unused walk_tree_content 2024-07-12 20:12:28 +02:00
Witold Filipczyk
90f73d8394 [ecmascript] Moved common code of walk_tree to ecmascript-c.c 2024-07-12 15:46:10 +02:00
Witold Filipczyk
c20eb2421f [mujs] No ampersand 2024-07-12 13:19:15 +02:00
Witold Filipczyk
c4ec831978 [quickjs] & is wrong in dom_string_unref 2024-07-12 11:22:31 +02:00