OSDN Git Service

replace delete with free
authorElliott Wen <jq.elliott.wen@gmail.com>
Tue, 3 Jul 2018 04:38:39 +0000 (16:38 +1200)
committerRob Herring <robherring2@gmail.com>
Mon, 22 Apr 2019 13:43:11 +0000 (08:43 -0500)
gralloc.cpp

index 2753ee9..b9765de 100644 (file)
@@ -156,7 +156,8 @@ static int gbm_mod_close_gpu0(struct hw_device_t *dev)
        struct alloc_device_t *alloc = (struct alloc_device_t *) dev;
 
        gbm_dev_destroy(dmod->gbm);
-       delete alloc;
+       native_handle_delete((native_handle*)handle);
+       //delete alloc;
 
        return 0;
 }