<div dir="ltr"><br><br><div class="gmail_quote">On Mon, May 18, 2015 at 2:45 PM Vince Harron <<a href="mailto:vince@nethacker.com">vince@nethacker.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Only got through ProcessPOSIX, will continue later<br>
<br>
<br>
================<br>
Comment at: source/API/SBLaunchInfo.cpp:178<br>
@@ -177,2 +177,3 @@<br>
 {<br>
-    return m_opaque_sp->GetWorkingDirectory();<br>
+    ConstString working_dir{m_opaque_sp->GetWorkingDirectory().GetPath()};<br>
+    return working_dir.GetCString();<br>
----------------<br>
If ConstString gets destructed after GetWorkingDirectory () returns, will the memory pointed to by working_dir.GetCString() be freed?</blockquote><div><br></div><div>Yea the whole point of ConstString actually is that it interns the string so it will be available.  That's the only way to return c strings to python, for example.  I guess a better name would be InternedString. </div></div></div>