Index: /trunk/MagicSoft/Cosy/Changelog
===================================================================
--- /trunk/MagicSoft/Cosy/Changelog	(revision 1342)
+++ /trunk/MagicSoft/Cosy/Changelog	(revision 1343)
@@ -1,3 +1,10 @@
                                                                   -*-*- END -*-*-
+
+ 2002/06/03 - Thomas Bretz:
+
+   * gui/MGImage.cc:
+     - fixed a bug in the destructor while freeing fBuffer
+
+
 
  2002/04/12 - Thomas Bretz:
Index: /trunk/MagicSoft/Cosy/gui/MGImage.cc
===================================================================
--- /trunk/MagicSoft/Cosy/gui/MGImage.cc	(revision 1342)
+++ /trunk/MagicSoft/Cosy/gui/MGImage.cc	(revision 1343)
@@ -144,11 +144,18 @@
     pthread_mutex_lock((pthread_mutex_t*)fMuxPixmap);
 
-    char *b = *fBuffer;
+    cout << "Deleting fBuffer..." << endl;
+
+    char **b = fBuffer;
     while (*b)
-        delete[] b++;
+        delete[] *b++;
     delete[] fBuffer;
+
+    cout << "Deleting Pixmap..." << endl;
 
     if (fPixmap!=kNone) // @@@
         gVirtualX->DeletePixmap(fPixmap);  // XFreePixmap(fDisplay, (Pixmap) pmap);
+
+    cout << "Deleting GC..." << endl;
+
     gVirtualX->DeleteGC(fDefGC);       // XFreeGC(fDisplay, (GC) gc);
 
