Commit c92bebae authored by Colomban Wendling's avatar Colomban Wendling
Browse files

GTK client: Board.get_current_tile() no more returns a ref, so don't release it

GTK client should now work. And show that the library is buggy ATM.
parent bb0fe280
......@@ -141,7 +141,6 @@ test_game (OVCCGame *game)
} else {
n_success ++;
}
g_object_unref (tile);
}
}
......@@ -330,7 +329,6 @@ update_tile_image (App *app)
pix = tile_get_pixbuf (tile, -1);
gtk_image_set_from_pixbuf (GTK_IMAGE (app->current_tile_image), pix);
g_object_unref (pix);
g_object_unref (tile);
} else {
gtk_image_set_from_stock (GTK_IMAGE (app->current_tile_image),
GTK_STOCK_MISSING_IMAGE,
......@@ -347,7 +345,6 @@ rotate_current_tile (App *app,
tile = ovcc_game_get_current_tile (app->game);
if (tile) {
ovcc_tile_rotate (tile, wise);
g_object_unref (tile);
}
update_tile_image (app);
}
......@@ -381,7 +378,6 @@ on_tile_add_request (OVCCGtkBoard *board,
ovcc_game_get_current_player (app->game), pos)) {
g_debug ("OK, placed.");
}
g_object_unref (tile);
} else {
GtkWidget *dialog;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment