mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-18 14:31:18 +02:00
create bsd12 branch
This commit is contained in:
33
text/recode/files/patch-x-src-names.c
Normal file
33
text/recode/files/patch-x-src-names.c
Normal file
@@ -0,0 +1,33 @@
|
||||
--- ./src/names.c.orig 2000-12-06 21:41:29.000000000 +0200
|
||||
+++ ./src/names.c 2016-12-04 20:40:12.417572000 +0200
|
||||
@@ -101,6 +101,21 @@
|
||||
return strcmp (first->name, second->name) == 0;
|
||||
}
|
||||
|
||||
+static void
|
||||
+alias_freer (void *param)
|
||||
+{
|
||||
+ RECODE_ALIAS alias = param;
|
||||
+ struct recode_surface_list *next = alias->implied_surfaces;
|
||||
+ struct recode_surface_list *p;
|
||||
+ while (next)
|
||||
+ {
|
||||
+ p = next->next;
|
||||
+ free(next);
|
||||
+ next = p;
|
||||
+ }
|
||||
+ free(alias);
|
||||
+}
|
||||
+
|
||||
bool
|
||||
prepare_for_aliases (RECODE_OUTER outer)
|
||||
{
|
||||
@@ -108,7 +123,7 @@
|
||||
outer->number_of_symbols = 0;
|
||||
|
||||
outer->alias_table
|
||||
- = hash_initialize (800, NULL, alias_hasher, alias_comparator, free);
|
||||
+ = hash_initialize (800, NULL, alias_hasher, alias_comparator, alias_freer);
|
||||
if (!outer->alias_table)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user