[phonemgr] Properly free the SMS reference.



commit 474ec76c74192812ff52eb60dfa2c3a6add0ac6a
Author: Francesco Marella <francesco marella gmail com>
Date:   Sat Jan 23 11:51:26 2010 +0100

    Properly free the SMS reference.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=607852

 libgsm/phonemgr-listener.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgsm/phonemgr-listener.c b/libgsm/phonemgr-listener.c
index c00f3d0..81d000e 100644
--- a/libgsm/phonemgr-listener.c
+++ b/libgsm/phonemgr-listener.c
@@ -1136,8 +1136,8 @@ phonemgr_listener_queue_message (PhonemgrListener *l,
 	error = gn_sms_send (&l->phone_state->data, &l->phone_state->state);
 
 	/* Remove the reference to SMS */
-	if (l->phone_state->data.sms.reference != NULL)
-		free (l->phone_state->data.sms.reference);
+	if (l->phone_state->data.sms->reference != NULL)
+		free (l->phone_state->data.sms->reference);
 	l->phone_state->data.sms = NULL;
 
 	/* Unlock the phone */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]