42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
andSize: pathlen +
suffixlen + 1];
}
memcpy(file, path, pathlen);
memcpy(file + pathlen, PLUGIN_SUFFIX, suffixlen);
file[pathlen + suffixlen] = 0;
if ((handle = dlopen(file, RTLD_NOW)) == NULL ||
(init_plugin = dlsym(handle, "init_plugin")) == NULL ||
(plugin = init_plugin()) == nil) {
free(file);
c = [self class];
[super free];
@throw [OFInitializationFailedException
newWithClass: c];
}
free(file);
}
return self;
}
- free
{
|
|
<
<
>
>
>
>
>
>
>
>
>
|
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
andSize: pathlen +
suffixlen + 1];
}
memcpy(file, path, pathlen);
memcpy(file + pathlen, PLUGIN_SUFFIX, suffixlen);
file[pathlen + suffixlen] = 0;
if ((handle = dlopen(file, RTLD_NOW)) == NULL) {
free(file);
c = [self class];
[super free];
@throw [OFInitializationFailedException
newWithClass: c];
}
free(file);
if ((init_plugin = dlsym(handle, "init_plugin")) == NULL ||
(plugin = init_plugin()) == nil) {
dlclose(handle);
c = [self class];
[super free];
@throw [OFInitializationFailedException
newWithClass: c];
}
}
return self;
}
- free
{
|