mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 01:45:06 +00:00
fixed double fclose of crash dump file, removed block user context menu item for App::self()
This commit is contained in:
@@ -607,7 +607,7 @@ void _moveOldDataFiles(const QString &wasDir) {
|
||||
namespace SignalHandlers {
|
||||
|
||||
QString CrashDumpPath;
|
||||
FILE *CrashDumpFile = 0;
|
||||
FILE *CrashDumpFile = nullptr;
|
||||
int CrashDumpFileNo = 0;
|
||||
char LaunchedDateTimeStr[32] = { 0 };
|
||||
char LaunchedBinaryName[256] = { 0 };
|
||||
@@ -999,6 +999,8 @@ namespace SignalHandlers {
|
||||
FinishBreakpad();
|
||||
if (CrashDumpFile) {
|
||||
fclose(CrashDumpFile);
|
||||
CrashDumpFile = nullptr;
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
_wunlink(CrashDumpPath.toStdWString().c_str());
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user