mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-analyze: use mapped file from file chunk
This commit is contained in:
@ -188,7 +188,7 @@ sysprof_document_file_read (SysprofDocumentFile *self)
|
|||||||
bytes = g_bytes_new_with_free_func (data,
|
bytes = g_bytes_new_with_free_func (data,
|
||||||
len,
|
len,
|
||||||
(GDestroyNotify)g_mapped_file_unref,
|
(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);
|
g_memory_input_stream_add_bytes (G_MEMORY_INPUT_STREAM (input), bytes);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user