diff options
author | Kyle Hill <kyle.hill@tacomafia.net> | 2012-09-06 21:17:12 -0500 |
---|---|---|
committer | Kyle Hill <kyle.hill@tacomafia.net> | 2012-09-16 11:54:00 -0500 |
commit | ca29c4ad2445391b3b41af97ff83bb02e86f2d01 (patch) | |
tree | beb56107f32e3fcbeecb2fc90193e33a14a7f4c6 /lib/addons | |
parent | 6bc555ff7b7598c62f734ea9272e3895e279a475 (diff) |
[hack] replace pointers to temporaries with a memleak
Patch from spiff:
this is the proper solution as such, but it needs to be made clear
in the API docs that the caller is reponsible for freeing the
strings
Diffstat (limited to 'lib/addons')
-rw-r--r-- | lib/addons/library.xbmc.addon/libXBMC_addon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/addons/library.xbmc.addon/libXBMC_addon.cpp b/lib/addons/library.xbmc.addon/libXBMC_addon.cpp index 8d8f026a95..86d6affa30 100644 --- a/lib/addons/library.xbmc.addon/libXBMC_addon.cpp +++ b/lib/addons/library.xbmc.addon/libXBMC_addon.cpp @@ -122,7 +122,7 @@ DLLEXPORT const char* XBMC_get_dvd_menu_language() return ""; string buffer = m_cb->GetDVDMenuLanguage(m_Handle->addonData); - return buffer.c_str(); + return strdup(buffer.c_str()); } }; |