Fix GDNativeLibrary::get_current_library_path()
Return a const String reference to make sure that when its address is used as a handle in NativeScriptLanguage::init_library(), it refers to the heap instead of a temporary object on the stack.
This commit is contained in:
parent
90a7342114
commit
1583c89a45
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ public:
|
|||
|
||||
// things that change per-platform
|
||||
// so there are no setters for this
|
||||
_FORCE_INLINE_ String get_current_library_path() const {
|
||||
_FORCE_INLINE_ const String &get_current_library_path() const {
|
||||
return current_library_path;
|
||||
}
|
||||
_FORCE_INLINE_ Vector<String> get_current_dependencies() const {
|
||||
|
|
Loading…
Reference in a new issue