Explorar o código

fix(mm_list): set children mm's owner on moving

greatbridf %!s(int64=2) %!d(string=hai) anos
pai
achega
1724d02506
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      include/kernel/mm.hpp

+ 2 - 0
include/kernel/mm.hpp

@@ -179,6 +179,8 @@ public:
         , m_pd(v.m_pd)
     {
         v.m_pd = 0;
+        for (auto& area : m_areas)
+            area.owner = this;
     }
     ~mm_list()
     {