Changeset 927 for trunk/dll/assoc.c


Ignore:
Timestamp:
Jan 17, 2008, 3:22:03 AM (18 years ago)
Author:
Gregg Young
Message:

Free pszWorkBuf memory for NormalizeCmdLine calls. Add comments for ticket 161 fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/assoc.c

    r920 r927  
    651651        NormalizeCmdLine(pszWorkBuf, temp.cl);
    652652        memcpy(temp.cl, pszWorkBuf, strlen(pszWorkBuf) + 1);
     653        xfree(pszWorkBuf);
    653654        WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig);
    654655        rstrip(temp.sig);
     
    739740        NormalizeCmdLine(pszWorkBuf, temp.cl);
    740741        memcpy(temp.cl, pszWorkBuf, strlen(pszWorkBuf) + 1);
     742        xfree(pszWorkBuf);
    741743        WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig);
    742744        rstrip(temp.sig);
     
    853855        NormalizeCmdLine(pszWorkBuf, temp.cl);
    854856        memcpy(temp.cl, pszWorkBuf, strlen(pszWorkBuf) + 1);
     857        xfree(pszWorkBuf);
    855858        WinQueryDlgItemText(hwnd, ASS_SIG, sizeof(temp.sig), temp.sig);
    856859        rstrip(temp.sig);
Note: See TracChangeset for help on using the changeset viewer.