From 909228174e7aef51b12c42645859867681485b4d Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 15 May 2023 13:51:22 -0700 Subject: [PATCH] libsysprof-analyze: use mapped file from file chunk --- src/libsysprof-analyze/sysprof-document-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsysprof-analyze/sysprof-document-file.c b/src/libsysprof-analyze/sysprof-document-file.c index fe7fd4cd..aa380b61 100644 --- a/src/libsysprof-analyze/sysprof-document-file.c +++ b/src/libsysprof-analyze/sysprof-document-file.c @@ -188,7 +188,7 @@ sysprof_document_file_read (SysprofDocumentFile *self) bytes = g_bytes_new_with_free_func (data, len, (GDestroyNotify)g_mapped_file_unref, - g_mapped_file_ref (SYSPROF_DOCUMENT_FRAME (self)->mapped_file)); + g_mapped_file_ref (SYSPROF_DOCUMENT_FRAME (file_chunk)->mapped_file)); g_memory_input_stream_add_bytes (G_MEMORY_INPUT_STREAM (input), bytes); }