Signed-off-by: Ran Benita <ran234@gmail.com>
unwind_file:
FreeXKBFile(file);
free(scanFile);
+ XkbFreeIncludePath();
fail:
return xkb;
}
unwind_file:
FreeXKBFile(file);
free(scanFile);
+ XkbFreeIncludePath();
return xkb;
}
noDefaultPath = True;
}
+void
+XkbFreeIncludePath(void)
+{
+ XkbClearIncludePath();
+ free(includePath);
+ includePath = NULL;
+}
+
/**
* Add the given path to the global includePath variable.
* If dir is NULL, the includePath is emptied.
char ** /* extra_data */
);
+extern void XkbFreeIncludePath(void);
+
#endif /* _XKBPATH_H_ */