[Glade-devel] A (not so) little issue at gladeui/glade-project.c:1492
- From: jhs at jsschmid.de (Johannes Schmid)
- Subject: [Glade-devel] A (not so) little issue at gladeui/glade-project.c:1492
- Date: Fri, 20 Feb 2015 08:32:12 +0100
Hi Juan!
In gladeui/glade-project.c:1492, the call to g_free (required_lib) not
always leave required_lib in NULL, at least for me, so the condition !
required_lib fail in the remaining bucles. Of cource, this occurs when
I use more than one requires-tag and can't use my own plugins.
I don't fully see your point. required_lib is free'd in the last else
branch and when the loop continues, the first thing is to initialize it
to NULL
(https://git.gnome.org/browse/glade/tree/gladeui/glade-project.c#n1443).
So it shouldn't be a problem that it isn't being set to NULL.
Sidenote: The correct way to free it and set it to NULL would be
g_clear_pointer (&required_lib, g_free) but that shouldn't be necessary
here.
Regards,
Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ximian.com/pipermail/glade-devel/attachments/20150220/b44f6bfd/attachment.pgp>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]