e4b8424f33
- Fix build on 4.x - Add patches to build on 5.x from edwin Note this does not build on 5.x, my C++ fu is not good enough to overcome iterator usage in admin.cc. Patches are welcomed. PR: ports/47862 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net> (maintainer)
17 lines
507 B
C++
17 lines
507 B
C++
--- gif.cc.orig Wed Apr 11 21:12:24 2001
|
|
+++ gif.cc Mon Feb 3 03:46:27 2003
|
|
@@ -107,11 +107,11 @@
|
|
box(FL_NO_BOX); end(); show();
|
|
}
|
|
~gif_window () {
|
|
- if (p && p->data) {
|
|
- char** real_data = (char**)(p->data);
|
|
+ if (p && p->alloc_data) {
|
|
+ char** real_data = (char**)(p->alloc_data);
|
|
for (int i = 0; i < 3; i++) delete[] real_data[i];
|
|
delete[] real_data;
|
|
- p->data = 0; delete p; p = 0;
|
|
+ p->alloc_data = 0; delete p; p = 0;
|
|
}
|
|
if (linelength) free((void*)linelength);
|
|
}
|