Displaying 20 results from an estimated 36 matches for "g_list_free".
2007 Feb 19
0
22 commits - libswfdec/js libswfdec/swfdec_debugger.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_script.c
...void
swfdec_player_dispose (GObject *object)
{
- GList *walk;
SwfdecPlayer *player = SWFDEC_PLAYER (object);
swfdec_player_stop_all_sounds (player);
@@ -337,28 +329,16 @@ swfdec_player_dispose (GObject *object)
g_list_foreach (player->roots, (GFunc) swfdec_movie_destroy, NULL);
g_list_free (player->roots);
- if (player->rate) {
- swfdec_player_remove_timeout (player, &player->iterate_timeout);
- }
- walk = player->timeouts;
- while (walk) {
- SwfdecTimeout *timeout = walk->data;
- walk = walk->next;
- if (timeout->free) {
- /* all the o...
2007 Nov 08
0
libswfdec/swfdec_load_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h
...);
}
return movie;
}
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 3d36451..4d7e723 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -887,7 +887,8 @@ swfdec_player_dispose (GObject *object)
}
g_assert (player->timeouts == NULL);
g_list_free (player->intervals);
- g_list_free (player->load_objects);
+ while (player->rooted_objects)
+ swfdec_player_unroot_object (player, player->rooted_objects->data);
player->intervals = NULL;
swfdec_cache_unref (player->cache);
if (player->system) {
@@ -1374,6 +137...
2016 Jan 26
1
[PATCH v2] p2v: User can click on an interface name to identify the
v1 -> v2:
Added a (now blue) underlined "Identify interface" link. It's not
really a link, but it looks like one, so hopefully should resolve
the previous UI issue.
Rich.
2016 Jan 26
2
[PATCH] p2v: User can click on an interface name to identify the physical interface.
...&path, &column, NULL, NULL)) {
+ GList *cols;
+ gint column_index;
+
+ /* Get column index. */
+ cols = gtk_tree_view_get_columns (GTK_TREE_VIEW (interfaces_list));
+ column_index = g_list_index (cols, (gpointer) column);
+ g_list_free (cols);
+
+ if (column_index == INTERFACES_COL_DEVICE) {
+ const gint *indices;
+ gint row_index;
+ const char *if_name;
+ char *cmd;
+
+ /* Get the row index. */
+ indices = gtk_tree_path_get_indices (path);
+ row_index = indices[0];
+
+...
2007 Oct 18
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...phs)
+{
+ GList *iter;
+ int i;
+
+ g_return_if_fail (paragraphs != NULL);
+
+ for (i = 0; paragraphs[i].text != NULL; i++)
+ {
+ for (iter = paragraphs[i].blocks; iter != NULL; iter = iter->next) {
+ pango_tab_array_free (((SwfdecBlock *)(iter->data))->tab_stops);
+ }
+ g_list_free (paragraphs[i].blocks);
+
+ for (iter = paragraphs[i].attrs; iter != NULL; iter = iter->next) {
+ pango_attribute_destroy ((PangoAttribute *)(iter->data));
+ }
+ g_list_free (paragraphs[i].attrs);
+
+ if (paragraphs[i].attrs_list != NULL)
+ pango_attr_list_unref (paragra...
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...ect_mark;
}
static void
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 942dadf..b1ad1c7 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -666,6 +666,7 @@ swfdec_player_dispose (GObject *object)
}
g_assert (player->timeouts == NULL);
g_list_free (player->intervals);
+ g_list_free (player->load_objects);
player->intervals = NULL;
g_assert (g_queue_is_empty (player->init_queue));
g_assert (g_queue_is_empty (player->construct_queue));
@@ -1088,18 +1089,12 @@ static void
swfdec_player_mark (SwfdecAsContext *context)...
2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
...g_list_sort (failed_tests, (GCompareFunc) strcmp);
+ g_print ("\nFAILURES: %u\n", g_list_length (failed_tests));
+ for (walk = failed_tests; walk; walk = walk->next) {
+ g_print (" %s\n", (char *) walk->data);
+ g_free (walk->data);
+ }
+ g_list_free (failed_tests);
+ return 1;
} else {
g_print ("\nEVERYTHING OK\n");
+ return 0;
}
- return failed_tests;
}
diff-tree ab415fae5fab598414213d603bc97721840727b0 (from 9cef35d65cdcba5be0c0bf9e395f00161a1cd37b)
Author: Benjamin Otte <otte@gnome.org>
Date: Tue Feb 6...
2007 Apr 20
0
8 commits - libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_root_sprite.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c NEWS test/parse.c
...ets @queue into to initial state. All buffers it contains will be
+ * released and the offset will be reset to 0.
+ **/
void
swfdec_buffer_queue_clear (SwfdecBufferQueue *queue)
{
+ g_return_if_fail (queue != NULL);
+
g_list_foreach (queue->buffers, (GFunc) swfdec_buffer_unref, NULL);
g_list_free (queue->buffers);
memset (queue, 0, sizeof (SwfdecBufferQueue));
}
+/**
+ * swfdec_buffer_queue_push:
+ * @queue: a #SwfdecBufferQueue
+ * @buffer: #SwfdecBuffer to append to @queue
+ *
+ * Appends the given @buffer to the buffers already in @queue. This function
+ * will take ownership of...
2007 Mar 15
0
11 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_event.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
..._player.c
@@ -378,8 +378,8 @@ swfdec_player_dispose (GObject *object)
g_hash_table_foreach_steal (player->registered_classes, free_registered_class, player);
g_hash_table_destroy (player->registered_classes);
- g_list_foreach (player->roots, (GFunc) swfdec_movie_destroy, NULL);
- g_list_free (player->roots);
+ while (player->roots)
+ swfdec_movie_destroy (player->roots->data);
swfdec_js_finish_player (player);
@@ -945,8 +945,8 @@ swfdec_player_add_level_from_loader (Swf
{
SwfdecMovie *movie;
SwfdecRootMovie *root;
- GList *found;
+ swfdec_player_remove...
2007 Jun 01
0
Branch 'as' - 2 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c libswfdec/swfdec_interval.c libswfdec/swfdec_interval.h libswfdec/swfdec_player_as.c libswfdec/swfdec_player.c
...c/swfdec_player.c
index 965f021..54a2707 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -397,6 +397,8 @@ swfdec_player_dispose (GObject *object)
swfdec_player_remove_timeout (player, &player->iterate_timeout);
}
g_assert (player->timeouts == NULL);
+ g_list_free (player->intervals);
+ player->intervals = NULL;
g_assert (g_queue_is_empty (player->init_queue));
g_assert (g_queue_is_empty (player->construct_queue));
g_queue_free (player->init_queue);
diff --git a/libswfdec/swfdec_player_as.c b/libswfdec/swfdec_player_as.c
index 6a17cd...
2020 Jan 22
4
[v2v PATCH 0/3] Use libosinfo for query device drivers
This patch series integrates libosinfo in virt-v2v to get the list of
files for Windows from libosinfo, if possible. The actual data is still
from virtio-win, just unpacked.
Pino Toscano (3):
build: require libosinfo
v2v: add a minimal libosinfo interface
v2v: try to get windows driver files from libosinfo
m4/guestfs-v2v.m4 | 3 +
v2v/Makefile.am | 9 +-
2020 Jan 28
4
[v2v PATCH v2 0/3] Use libosinfo for query device drivers
This patch series integrates libosinfo in virt-v2v to get the list of
files for Windows from libosinfo, if possible. The actual data is still
from virtio-win, just unpacked.
Changes from v1:
- adapt to use the priority in libosinfo 1.7.0+
- filter out non-pre-installable drivers
- collect all the drivers matching the requirements, not just the first,
sorting them by priority like libosinfo does
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c
...= 0; i < SWFDEC_PLAYER_N_ACTION_QUEUES; i++) {
+ swfdec_ring_buffer_free (player->actions[i]);
+ }
g_assert (player->movies == NULL);
g_assert (player->audio == NULL);
if (player->external_timeout.callback)
@@ -807,10 +856,6 @@ swfdec_player_dispose (GObject *object)
g_list_free (player->intervals);
g_list_free (player->load_objects);
player->intervals = NULL;
- g_assert (g_queue_is_empty (player->init_queue));
- g_assert (g_queue_is_empty (player->construct_queue));
- g_queue_free (player->init_queue);
- g_queue_free (player->construct_queue...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...g_list_sort (failed_tests, (GCompareFunc) strcmp);
+ g_print ("\nFAILURES: %u\n", g_list_length (failed_tests));
+ for (walk = failed_tests; walk; walk = walk->next) {
+ g_print (" %s\n", (char *) walk->data);
+ g_free (walk->data);
+ }
+ g_list_free (failed_tests);
+ return 1;
} else {
g_print ("\nEVERYTHING OK\n");
+ return 0;
}
- return failed_tests;
}
diff-tree ab415fae5fab598414213d603bc97721840727b0 (from 9cef35d65cdcba5be0c0bf9e395f00161a1cd37b)
Author: Benjamin Otte <otte@gnome.org>
Date: Tue Feb 6...
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...ayouts; iter != NULL; iter = iter->next)
- {
- SwfdecLayout *layout = (SwfdecLayout *)iter->data;
-
- g_object_unref (layout->layout);
- g_free (layout);
- iter->data = NULL;
+ for (i = 0; layouts[i].layout != NULL; i++) {
+ g_object_unref (layouts[i].layout);
}
- g_list_free (layouts);
+ g_free (layouts);
}
diff --git a/libswfdec/swfdec_text_field.h b/libswfdec/swfdec_text_field.h
index 938dbfd..1609a52 100644
--- a/libswfdec/swfdec_text_field.h
+++ b/libswfdec/swfdec_text_field.h
@@ -123,11 +123,12 @@ GType swfdec_text_field_get_type (void);
int tag_func_de...
2008 Jan 08
0
4 commits - test/.gitignore test/image test/Makefile.am test/swfdec_test_function.c test/swfdec_test_image.c test/swfdec_test_image.h test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...g_list_sort (failed_tests, (GCompareFunc) strcmp);
- g_print ("\nFAILURES: %u\n", g_list_length (failed_tests));
- for (walk = failed_tests; walk; walk = walk->next) {
- g_print (" %s\n", (char *) walk->data);
- g_free (walk->data);
- }
- g_list_free (failed_tests);
- return 1;
- } else {
- g_print ("\nEVERYTHING OK\n");
- return 0;
- }
-}
-
commit 4208f7dfae9e15057b7bbf1bdbe187595d8938df
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Jan 8 21:59:20 2008 +0100
add image handling functions
diff --git a/tes...
2007 Mar 07
0
11 commits - libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h
...s free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -52,8 +52,7 @@ swfdec_decoder_dispose (GObject *object)
{
SwfdecSwfDecoder *s = SWFDEC_SWF_DECODER (object);
- g_list_foreach (s->characters, (GFunc) g_object_unref, NULL);
- g_list_free (s->characters);
+ g_hash_table_destroy (s->characters);
g_object_unref (s->main_sprite);
g_hash_table_destroy (s->exports);
@@ -85,20 +84,6 @@ zfree (void *opaque, void *addr)
g_free (addr);
}
-#if 0
-static void
-dumpbits (SwfdecBits * b)
-{
- int i;
-
- printf ("...
2007 Jul 02
0
Branch 'as' - 24 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...put);
+ if (!test->success) {
+ failures++;
+ g_string_append_printf (failed_tests,
+ " %s\n", test->filename);
+ }
+ test_free (test);
}
- test_free (test);
+ g_mutex_unlock (mutex);
+ g_cond_free (cond);
+ g_mutex_free (mutex);
}
+ g_list_free (tests);
/* report failures and exit */
if (failures > 0) {
diff-tree 173401debdee58e1811cb556c79da1d3cd61b094 (from 6367dac34114e42feca8c64321b31a68a408c888)
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Jun 29 14:21:19 2007 +0100
clean up test-running
- crea...
2007 Oct 22
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/trace
...ovie.c
@@ -343,6 +343,7 @@ swfdec_text_field_movie_free_paragraphs (SwfdecParagraph *paragraphs)
{
for (iter = paragraphs[i].blocks; iter != NULL; iter = iter->next) {
pango_tab_array_free (((SwfdecBlock *)(iter->data))->tab_stops);
+ g_free (iter->data);
}
g_list_free (paragraphs[i].blocks);
commit ec5a4b0e2ba4e62952a3f484a57567b35e64b3b3
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Mon Oct 22 17:50:38 2007 +0300
Free the GString used inside TextField
diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c...
2007 Aug 09
0
Branch 'vivi' - 6 commits - configure.ac vivified/core vivified/dock vivified/Makefile.am vivified/ui
...e "config.h"
+#endif
+
+#include "vivi_vdock.h"
+#include "vivi_docker.h"
+#include "vivi_docklet.h"
+
+G_DEFINE_TYPE (ViviVDock, vivi_vdock, GTK_TYPE_BIN)
+
+static void
+vivi_vdock_dispose (GObject *object)
+{
+ ViviVDock *vdock = VIVI_VDOCK (object);
+
+ g_list_free (vdock->docklets);
+ vdock->docklets = NULL;
+
+ G_OBJECT_CLASS (vivi_vdock_parent_class)->dispose (object);
+}
+
+static void
+vivi_vdock_add (GtkContainer *container, GtkWidget *widget)
+{
+ ViviVDock *vdock = VIVI_VDOCK (container);
+ GtkWidget *docker;
+
+ docker = vivi_docker_n...