broadband-modem-qmi: Pass signal values_result directly rather than duplicating with g_memdup

corrects segfault introduced in 7d8f0600e6

Signed-off-by: Paul Bartell <p.bartell@temperednetworks.com>
This commit is contained in:
Paul Bartell
2018-09-04 14:10:26 -07:00
parent 1b3b2e26a7
commit 6e8aab2c4e

View File

@@ -9962,8 +9962,9 @@ signal_load_values_context_step (GTask *task)
/* If any result is set, succeed */
if (VALUES_RESULT_LOADED (ctx)) {
g_task_return_pointer (task,
g_memdup (&ctx->values_result, sizeof (ctx->values_result)),
ctx->values_result,
(GDestroyNotify)signal_load_values_result_free);
/* Prevent values_result from being freed by signal_load_values_context_free */
ctx->values_result = NULL;
} else {
g_task_return_new_error (task,