Merge pull request #2022 from profanity-im/fixes

Memory fixes
This commit is contained in:
Michael Vetter
2025-03-13 09:58:09 +01:00
committed by GitHub
7 changed files with 49 additions and 26 deletions

View File

@@ -4917,8 +4917,6 @@ cmd_sendfile(ProfWin* window, const char* const command, gchar** args)
goto out;
}
FILE* fh = fdopen(fd, "rb");
gboolean omemo_enabled = FALSE;
gboolean sendfile_enabled = TRUE;
@@ -4952,6 +4950,8 @@ cmd_sendfile(ProfWin* window, const char* const command, gchar** args)
goto out;
}
FILE* fh = fdopen(fd, "rb");
if (omemo_enabled) {
#ifdef HAVE_OMEMO
char* err = NULL;