From e4b8424f336a69682278ac3b5d2bdc4a90ee0fff Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sun, 14 Dec 2003 18:03:48 +0000 Subject: - Fix patching - 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 (maintainer) --- databases/mysql-gui/files/patch-gif.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 databases/mysql-gui/files/patch-gif.cc (limited to 'databases/mysql-gui/files/patch-gif.cc') diff --git a/databases/mysql-gui/files/patch-gif.cc b/databases/mysql-gui/files/patch-gif.cc new file mode 100644 index 000000000000..33276477b436 --- /dev/null +++ b/databases/mysql-gui/files/patch-gif.cc @@ -0,0 +1,17 @@ +--- 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); + } -- cgit v1.2.3