diff --git a/Assets/Scripts/SteamUtilsTest.cs b/Assets/Scripts/SteamUtilsTest.cs index f9bc2f4..98da20e 100644 --- a/Assets/Scripts/SteamUtilsTest.cs +++ b/Assets/Scripts/SteamUtilsTest.cs @@ -40,7 +40,7 @@ public static Texture2D GetSteamImageAsTexture2D(int iImage) { ret.Apply(); } } - + Destroy(ret,1);//memory leak prevention return ret; } @@ -193,4 +193,4 @@ void OnGamepadTextInputDismissed(GamepadTextInputDismissed_t pCallback) { Debug.Log("SteamUtils.GetEnteredGamepadTextInput(out Text, pCallback.m_unSubmittedText + 1) - " + ret + " -- " + Text); } } -} \ No newline at end of file +}