Port to g_auto*
@pksadiq
Submitted by Mohammed Sadiq Link to original bug (#792221)
Description
It would be nice if the code is ported to use g_auto* macros so that the allocated resource is automatically freed when out of scope. This shall help save many leaks in the application.