Changeset 1343 for trunk/MagicSoft/Cosy


Ignore:
Timestamp:
06/03/02 15:58:47 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/Changelog

    r1275 r1343  
    11                                                                  -*-*- END -*-*-
     2
     3 2002/06/03 - Thomas Bretz:
     4
     5   * gui/MGImage.cc:
     6     - fixed a bug in the destructor while freeing fBuffer
     7
     8
    29
    310 2002/04/12 - Thomas Bretz:
  • trunk/MagicSoft/Cosy/gui/MGImage.cc

    r1111 r1343  
    144144    pthread_mutex_lock((pthread_mutex_t*)fMuxPixmap);
    145145
    146     char *b = *fBuffer;
     146    cout << "Deleting fBuffer..." << endl;
     147
     148    char **b = fBuffer;
    147149    while (*b)
    148         delete[] b++;
     150        delete[] *b++;
    149151    delete[] fBuffer;
     152
     153    cout << "Deleting Pixmap..." << endl;
    150154
    151155    if (fPixmap!=kNone) // @@@
    152156        gVirtualX->DeletePixmap(fPixmap);  // XFreePixmap(fDisplay, (Pixmap) pmap);
     157
     158    cout << "Deleting GC..." << endl;
     159
    153160    gVirtualX->DeleteGC(fDefGC);       // XFreeGC(fDisplay, (GC) gc);
    154161
Note: See TracChangeset for help on using the changeset viewer.