* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#undef G_LOG_DOMAIN
static void
test_a_foo (TestI *self)
{
- GValue args[1] = { { 0, } };
+ GValue args[1] = { G_VALUE_INIT };
record ("TestA::foo");
static void
test_b_foo (TestI *self)
{
- GValue args[1] = { { 0, } };
+ GValue args[1] = { G_VALUE_INIT };
record ("TestB::foo");
static void
test_b_bar (TestA *self)
{
- GValue args[1] = { { 0, } };
+ GValue args[1] = { G_VALUE_INIT };
record ("TestB::bar");
static void
test_c_foo (TestI *self)
{
- GValue args[1] = { { 0, } };
+ GValue args[1] = { G_VALUE_INIT };
record ("TestC::foo");
static void
test_c_bar (TestA *self)
{
- GValue args[1] = { { 0, } };
+ GValue args[1] = { G_VALUE_INIT };
record ("TestC::bar");
if (strcmp (ret, expected_retval) != 0)
failed = TRUE;
+
+ g_free (ret);
}
#ifndef VERBOSE
}
g_string_free (test_string, TRUE);
+ g_object_unref (self);
}
int
g_log_set_always_fatal (g_log_set_always_fatal (G_LOG_FATAL_MASK) |
G_LOG_LEVEL_WARNING |
G_LOG_LEVEL_CRITICAL);
- g_type_init();
test (TEST_TYPE_A, "foo", "TestA::foo,TestI::foo", NULL);
test (TEST_TYPE_A, "bar", "TestA::bar", NULL);