mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
fixed small oopsie
This commit is contained in:
parent
fa54ed843d
commit
786c2e8014
@ -5,7 +5,7 @@
|
|||||||
void nn_drive_destroy(void *_, nn_component *component, nn_drive *drive) {
|
void nn_drive_destroy(void *_, nn_component *component, nn_drive *drive) {
|
||||||
if(!nn_decRef(&drive->refc)) return;
|
if(!nn_decRef(&drive->refc)) return;
|
||||||
|
|
||||||
if(drive->deinit == NULL) {
|
if(drive->deinit != NULL) {
|
||||||
drive->deinit(component, drive->userdata);
|
drive->deinit(component, drive->userdata);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
void nn_fs_destroy(void *_, nn_component *component, nn_filesystem *fs) {
|
void nn_fs_destroy(void *_, nn_component *component, nn_filesystem *fs) {
|
||||||
if(!nn_decRef(&fs->refc)) return;
|
if(!nn_decRef(&fs->refc)) return;
|
||||||
|
|
||||||
if(fs->deinit == NULL) {
|
if(fs->deinit != NULL) {
|
||||||
fs->deinit(component, fs->userdata);
|
fs->deinit(component, fs->userdata);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user