[packagekit] pk-glib2 problem

Daniel Nicoletti dantti85-pk at yahoo.com.br
Wed Sep 16 11:09:16 PDT 2009


ok, last question :P
{
gchar **package_ids;
package_ids = pk_backend_get_strv (backend, "package_ids");
}
do I need to free it?

thanks,
Daniel.



----- Mensagem original ----
> De: Richard Hughes <hughsient at gmail.com>
> Para: PackageKit users and developers list <packagekit at lists.freedesktop.org>
> Enviadas: Quarta-feira, 16 de Setembro de 2009 15:00:05
> Assunto: Re: [packagekit] pk-glib2 problem
> 
> 2009/9/16 Daniel Nicoletti :
> > Well no, for apt what from the package id really matters is
> > pkg name and version, and i need the name to match to the internal
> > package.
> 
> Just create an aptcc function:
> 
> gchar* aptcc_convert_package_id_to_name_ver (const gchar *package_id)
> 
> and then g_free the result when you're done.
> 
> > BTW do you know what i need to do with gdb to see if there is something
> > leaking?
> 
> Use valgrind. It rocks.
> 
> Richard.
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit



      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com



More information about the PackageKit mailing list