summaryrefslogtreecommitdiff
path: root/src/gui/dialogs/export_disass.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/export_disass.c')
-rw-r--r--src/gui/dialogs/export_disass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/dialogs/export_disass.c b/src/gui/dialogs/export_disass.c
index 84ccc0a..12fc51f 100644
--- a/src/gui/dialogs/export_disass.c
+++ b/src/gui/dialogs/export_disass.c
@@ -389,7 +389,7 @@ static void start_binary_export(GBufferCache *cache, buffer_export_context *temp
queue = get_work_queue();
- g_buffer_cache_lock(cache);
+ g_buffer_cache_rlock(cache);
count = g_buffer_cache_count_lines(cache);
info->msg = gtk_status_stack_add_activity(get_global_status(), _("Exporting binary content..."), count);
@@ -463,7 +463,7 @@ static void on_binary_export_completed(GSeqWork *work, export_info_t *info)
log_simple_message(LMT_INFO, "Binary content exported!");
- g_buffer_cache_unlock(info->cache);
+ g_buffer_cache_runlock(info->cache);
g_object_unref(G_OBJECT(info->cache));
g_object_unref(G_OBJECT(info->options));