openbsd-ports/x11/kde4/edu/patches/patch-kalgebra_calgebra_main_cpp
2010-06-19 18:43:38 +00:00

19 lines
539 B
Plaintext

$OpenBSD: patch-kalgebra_calgebra_main_cpp,v 1.1 2010/06/19 18:43:38 espie Exp $
--- kalgebra/calgebra/main.cpp.orig Sat Jun 19 15:05:33 2010
+++ kalgebra/calgebra/main.cpp Sat Jun 19 15:06:13 2010
@@ -100,8 +100,13 @@ int main(int argc, char *argv[])
for(int i=0; i<history_get_history_state()->length; i++) {
HIST_ENTRY *he = remove_history(i);
-// free(he->line);
+#if defined(__OpenBSD__)
+ /* very old lib ! */
+ free(he->line);
+ free(he);
+#else
free_history_entry(he);
+#endif
}
qDebug("\nExit.");
return 0;