Fix memory leak

This commit is contained in:
DarthSim
2017-10-05 05:56:42 +06:00
parent 55b972106c
commit e41a4ab13e
2 changed files with 6 additions and 1 deletions

View File

@@ -257,7 +257,7 @@ func processImage(data []byte, imgtype imageType, po processingOptions, t *timer
// Finally, save
var ptr unsafe.Pointer
defer C.g_free(C.gpointer(ptr))
defer C.g_free_go(&ptr)
imgsize := C.size_t(0)