Skip to content

Commit

Permalink
fix: [burn] fix packet writing init
Browse files Browse the repository at this point in the history
second init faield

Log: fix packet writing init
  • Loading branch information
Johnson-zs committed Feb 19, 2024
1 parent 6592285 commit aab42ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dfm-burn/3rdparty/udfclient/udf.c
Original file line number Diff line number Diff line change
Expand Up @@ -5227,6 +5227,8 @@ udf_init(void)
dirhash_init();

SLIST_INIT(&udf_discs_list);
SLIST_INIT(&udf_volumeset_list);
SLIST_INIT(&udf_mountables);
}


Expand Down
2 changes: 2 additions & 0 deletions src/dfm-burn/dfm-burn-lib/dpacketwritingcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ void DPacketWritingController::close()
disc = next_disc;
}

free(udf_bufcache);
udf_bufcache = NULL;
qInfo() << "Restore local working path:" << dptr->oldLocalWoringPath;
dptr->lcd(dptr->oldLocalWoringPath);
udfclient_pwd(0);
Expand Down

0 comments on commit aab42ee

Please sign in to comment.