Jump to content

Ask for Memory Leak/Optimisation Out!


Recommended Posts

Here is an gdb from my crashcore! 🙂

https://metin2.download/picture/WDWSG5Etyick5ehA0l5DZG7T20I8O361/.png

item.cpp 

void CItem::SetOwnership(LPCHARACTER ch, int iSec)
{
    if (!ch)
    {
        if (m_pkOwnershipEvent)
        {
            event_cancel(&m_pkOwnershipEvent);
            m_dwOwnershipPID = 0;

            TPacketGCItemOwnership p;

            p.bHeader    = HEADER_GC_ITEM_OWNERSHIP;
            p.dwVID    = m_dwVID;
            p.szName[0]    = '\0';

            PacketAround(&p, sizeof(p));   // - LINE 1306
        }
        return;
    }

entity.cpp

void CEntity::PacketAround(const void * data, int bytes, LPENTITY except)
{
    PacketView(data, bytes, except);    // -- LINE 90 
}

I think is about a memory leak, but i don't know, can someone help me? free or with money, here or on discord! 🙂

Discord: LegendaXXL#8018

Edited by Metin2 Dev
Core X - External 2 Internal

Respect!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.