#11934: [PATCH] Solve memory leaks in Deskbar and some replicants. ------------------------------+---------------------------- Reporter: Barrett | Owner: stippi Type: enhancement | Status: new Priority: normal | Milestone: R1 Component: User Interface | Version: R1/Development Resolution: | Keywords: Deskbar Blocked By: | Blocking: Has a Patch: 1 | Platform: All ------------------------------+---------------------------- Comment (by ttcoder): Is it completely portable to write {{{ char truncatedLabel[strlen(label) + 4]; }}} I seem to remember runtime-specified array sizes are a gcc specific extension, not supported on all compilers (?) Cleanups look good other than that (though maybe it's not my role as an outsider to comment on them) and patch 3 especially looks like a winner :-) We will have to collect more data on our side to see who is leaking and on what scale (we're tied up with so many things currently, sigh) -- Ticket URL: <https://dev.haiku-os.org/ticket/11934#comment:2> Haiku <https://dev.haiku-os.org> Haiku - the operating system.