aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/longcheer/mm-plugin-longcheer.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2023-01-08 19:57:31 +0100
committerAleksander Morgado <aleksander@aleksander.es>2023-04-11 13:49:03 +0000
commitc40876de956311ef9a17b920486263d46f4fef3b (patch)
tree381c755c74cc53fc99e0f8c53ea260f4da3a5da0 /src/plugins/longcheer/mm-plugin-longcheer.c
parente1e7bc8de6c6d90e79444fc2f0b0cf912c9d791c (diff)
port-serial-at: make mm_port_serial_at_command_finish() transfer ownership
This will make it slightly easier to port mm_port_serial_at_command() to use GTask, since we won't have to keep a pointer to the result in GTask after _finish() has been called. In most cases the caller needs the value anyway, so this doesn't add too much hasle.
Diffstat (limited to 'src/plugins/longcheer/mm-plugin-longcheer.c')
-rw-r--r--src/plugins/longcheer/mm-plugin-longcheer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/longcheer/mm-plugin-longcheer.c b/src/plugins/longcheer/mm-plugin-longcheer.c
index f3c6bc6c..a53e6d03 100644
--- a/src/plugins/longcheer/mm-plugin-longcheer.c
+++ b/src/plugins/longcheer/mm-plugin-longcheer.c
@@ -61,7 +61,7 @@ gmr_ready (MMPortSerialAt *port,
{
MMPortProbe *probe;
const gchar *p;
- const gchar *response;
+ g_autofree gchar *response = NULL;
probe = g_task_get_source_object (task);