Clear the GRefPtr before returning the value in outPtr(), similar to what GUniqueOutPtr does, since it's easy to forget to explicitly call clear from the callers.
Created attachment 455086 [details] Patch
Comment on attachment 455086 [details] Patch LGTM, it may make sense to fix the style checker issue while at it.
Style failure doesn't matter here, because the file is not the implementation of any class, so there's no header tom include. I think there was a way to workaround it, but I'm not sure it's worth it for a unit test
(In reply to Carlos Garcia Campos from comment #3) > Style failure doesn't matter here, because the file is not the > implementation of any class, so there's no header tom include. I think there > was a way to workaround it, but I'm not sure it's worth it for a unit test Maybe let's just not mind it, then :)
Committed r291482 (248596@trunk): <https://commits.webkit.org/248596@trunk>
<rdar://problem/90484376>