From c92d5a7f0218e36e6e0aa2865b367cc486e3012b Mon Sep 17 00:00:00 2001 From: Nejcraft Date: Sat, 4 May 2019 09:01:26 +0200 Subject: [PATCH] Update SteamUtilsTest.cs --- Assets/Scripts/SteamUtilsTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}