Bug 305707
| Summary: | [GLib] Avoid usage of temporary object in WebKitAutomationSession.cpp | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Adrian Perez <aperez> |
| Component: | WebKitGTK | Assignee: | Adrian Perez <aperez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply, philn |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Adrian Perez
Clang conveniently reports:
../Source/WebKit/UIProcess/API/glib/WebKitAutomationSession.cpp:359:38: warning: object backing the pointer 'ignoreAddressList[i++]' will be destroyed at the end of the full-expression [-Wdangling
-assignment]
359 | ignoreAddressList[i++] = ignoreAddress.utf8().data();
| ^~~~~~~~~~~~~~~~~~~~
1 warning generated.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Adrian Perez
Pull request: https://github.com/WebKit/WebKit/pull/56771
Philippe Normand
*** Bug 305377 has been marked as a duplicate of this bug. ***
EWS
Committed 305786@main (1861fba4afd0): <https://commits.webkit.org/305786@main>
Reviewed commits have been landed. Closing PR #56771 and removing active labels.