Device: fixed sdata destroy argument
authorPaul Kocialkowski <contact@paulk.fr>
Wed, 1 Aug 2012 13:45:45 +0000 (15:45 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Wed, 1 Aug 2012 13:45:45 +0000 (15:45 +0200)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
device.c

index c974f26..9265a6f 100644 (file)
--- a/device.c
+++ b/device.c
@@ -134,7 +134,7 @@ int ril_device_data_destroy(struct ril_device *ril_device_p)
        }
 
        LOGD("Destroying data for power handlers...");
-       rc = ril_device_p->handlers->power->sdata_destroy(&ril_device_p->handlers->power->sdata);
+       rc = ril_device_p->handlers->power->sdata_destroy(ril_device_p->handlers->power->sdata);
        if(rc < 0) {
                LOGE("Destroying data for power handlers failed!");
                return -1;
@@ -151,7 +151,7 @@ int ril_device_data_destroy(struct ril_device *ril_device_p)
        }
 
        LOGD("Destroying data for transport handlers...");
-       ril_device_p->handlers->transport->sdata_destroy(&ril_device_p->handlers->transport->sdata);
+       ril_device_p->handlers->transport->sdata_destroy(ril_device_p->handlers->transport->sdata);
        if(rc < 0) {
                LOGE("Destroying data for transport handlers failed!");
                return -1;