fix invalid free

2007-11-26  Ryan Lortie  <desrt@desrt.ca>

        * tests/buildertest.c (test_window): fix invalid free


svn path=/trunk/; revision=19073
This commit is contained in:
Ryan Lortie 2007-11-27 02:34:12 +00:00 committed by Ryan Lortie
parent 21a30978dc
commit 029de426da
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2007-11-26 Ryan Lortie <desrt@desrt.ca>
* tests/buildertest.c (test_window): fix invalid free
2007-11-26 Josselin Mouette <joss@malsain.org>
reviewed by: Federico Mena Quintero

View File

@ -1549,12 +1549,9 @@ gboolean test_window (void)
builder = builder_new_from_string (buffer2, -1, NULL);
window1 = gtk_builder_get_object (builder, "window1");
g_return_val_if_fail (title != NULL, FALSE);
g_free (title);
gtk_widget_destroy (GTK_WIDGET (window1));
g_object_unref (builder);
return TRUE;
}