[PATCH] libmm-glib, messaging: fix object unref in list_sms_context_complete_and_free

Ben Chan benchan at chromium.org
Fri Jun 23 07:14:31 UTC 2017


---
 libmm-glib/mm-modem-messaging.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmm-glib/mm-modem-messaging.c b/libmm-glib/mm-modem-messaging.c
index a6e281fc..d732dd88 100644
--- a/libmm-glib/mm-modem-messaging.c
+++ b/libmm-glib/mm-modem-messaging.c
@@ -243,7 +243,7 @@ list_sms_context_complete_and_free (ListSmsContext *ctx)
     g_object_unref (ctx->result);
     if (ctx->cancellable)
         g_object_unref (ctx->cancellable);
-    g_object_ref (ctx->self);
+    g_object_unref (ctx->self);
     g_slice_free (ListSmsContext, ctx);
 }
 
-- 
2.13.1.611.g7e3b11ae1-goog



More information about the ModemManager-devel mailing list