summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-dk
blob: 91b7c51b06712525939bbb84c1309894ee7e9083 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$NetBSD: patch-dk,v 1.3 2009/12/10 20:35:58 abs Exp $

--- lib/libxview/file_chooser/xv_path_util.h.orig	1994-06-26 01:05:20.000000000 +0000
+++ lib/libxview/file_chooser/xv_path_util.h
@@ -41,6 +41,7 @@
 
 
 #define xv_free_ref(str)	{if((str)) {xv_free((str)); (str) = NULL;}}
+#define xv_free_regex_t(str)  {if((str)) {regfree(((regex_t*)str)); free((str)); (str) = NULL;}}
 
 
 EXTERN_FUNCTION(void  xv_error_sprintf, (Frame frame, int use_footer, char *format, DOTDOTDOT) );