Closed
Bug 231231
Opened 21 years ago
Closed 21 years ago
next item should be get before the callback is called in moz_container_forall
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: iamawalrus, Assigned: iamawalrus)
References
Details
Attachments
(1 file)
571 bytes,
patch
|
blizzard
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
in moz_container_forall,
while (tmp_list) {
MozContainerChild *child;
child = tmp_list->data;
(* callback) (child->widget, callback_data);
tmp_list = tmp_list->next;
}
the next item is get after the callback is called. This will cause problems when
the callback is gtk_widget_destroy, the current list item is freed in
moz_container_remove and the tmp_list->next will be a random pointer.
Attachment #139262 -
Flags: review?(blizzard)
Comment 2•21 years ago
|
||
Comment on attachment 139262 [details] [diff] [review]
patch
Good catch.
Attachment #139262 -
Flags: review?(blizzard) → review+
Attachment #139262 -
Flags: superreview?(bryner)
Updated•21 years ago
|
Attachment #139262 -
Flags: superreview?(bryner) → superreview+
checked in.
Thank you all!
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•