<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Memory Leak on GanniPiece Blog</title>
    <link>https://blog.gannipiece.tw/en/tags/memory-leak/</link>
    <description>Recent content in Memory Leak on GanniPiece Blog</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 03 May 2022 08:55:34 +0000</lastBuildDate>
    <atom:link href="https://blog.gannipiece.tw/en/tags/memory-leak/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Enable and Detect Memory Leaks in the Unity Editor</title>
      <link>https://blog.gannipiece.tw/en/posts/detect-memory-leak-in-unity/</link>
      <pubDate>Tue, 03 May 2022 06:51:18 +0000</pubDate>
      <guid>https://blog.gannipiece.tw/en/posts/detect-memory-leak-in-unity/</guid>
      <description>&lt;p&gt;&lt;em&gt;(the post is automatically translated by AI)&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;A memory leak occurs when allocated memory is never freed. While it doesn&amp;rsquo;t necessarily cause immediate crashes, a leak gradually reduces the available memory, degrading system performance over time. In severe cases, it can lead to unpredictable errors or even security vulnerabilities &lt;a href=&#34;https://owasp.org/www-community/vulnerabilities/Memory_leak&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;1&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Memory: &amp;ldquo;Hmm? Something smells.&amp;rdquo;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;One of the most common causes of memory leaks is forgetting to free dynamically allocated memory — for instance, calling &lt;code&gt;new&lt;/code&gt; on the heap and never calling &lt;code&gt;delete&lt;/code&gt;. The unpredictable timing of when this causes problems makes debugging quite difficult.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
