chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quieten compiler
[disorder]
/
disobedience
/
disobedience.c
diff --git
a/disobedience/disobedience.c
b/disobedience/disobedience.c
index 7c6ef3dc9d6e0a7d1a03eb724785d8b359f22305..c37d0bcf82aace38ea037b3711ca3de07c870f5c 100644
(file)
--- a/
disobedience/disobedience.c
+++ b/
disobedience/disobedience.c
@@
-22,6
+22,7
@@
#include <getopt.h>
#include <locale.h>
#include <getopt.h>
#include <locale.h>
+#include <pcre.h>
/* Apologies for the numerous de-consting casts, but GLib et al do not seem to
* have heard of const. */
/* Apologies for the numerous de-consting casts, but GLib et al do not seem to
* have heard of const. */
@@
-319,7
+320,10
@@
int main(int argc, char **argv) {
int n;
disorder_eclient *logclient;
int n;
disorder_eclient *logclient;
- mem_init(1);
+ mem_init();
+ /* garbage-collect PCRE's memory */
+ pcre_malloc = xmalloc;
+ pcre_free = xfree;
if(!setlocale(LC_CTYPE, "")) fatal(errno, "error calling setlocale");
gtk_init(&argc, &argv);
gtk_rc_parse_string(style);
if(!setlocale(LC_CTYPE, "")) fatal(errno, "error calling setlocale");
gtk_init(&argc, &argv);
gtk_rc_parse_string(style);