Displaying 20 results from an estimated 34 matches for "g_error_free".
Did you mean:
_error_free
2014 Jun 13
4
[libldm 1/3] relax uuid, zlib version requirements
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 469ea96..0e7e2ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,14 +85,14 @@ PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.32.0],
]
)
-PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.5],
+PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2],
[
2007 Apr 02
0
4 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...g_free (cur);
}
SWFDEC_FILE_LOADER (loader)->dir = g_path_get_dirname (loader->url);
- swfdec_loader_set_size (loader, buf->length);
- swfdec_loader_push (loader, buf);
- swfdec_loader_eof (loader);
+ if (buf == NULL) {
+ swfdec_loader_error (loader, error->message);
+ g_error_free (error);
+ } else {
+ swfdec_loader_set_size (loader, buf->length);
+ swfdec_loader_push (loader, buf);
+ swfdec_loader_eof (loader);
+ }
return loader;
}
diff --git a/libswfdec/swfdec_loader.h b/libswfdec/swfdec_loader.h
index 482c810..b64c9a4 100644
--- a/libswfdec/swfdec_load...
2008 Jan 08
0
4 commits - configure.ac test/compiler.c test/.gitignore test/Makefile.am test/swfdec_test.c test/swfdec_test_function.c test/swfdec_test_function.h test/swfdec_test_global.c test/swfdec_test_initialize.as test/swfdec_test_initialize.h
...r = NULL;
+ int len;
+ byte *data;
+
+ if (argc != 3) {
+ g_print ("usage: %s INFILE OUTFILE\n\n", argv[0]);
+ return 1;
+ }
+
+ Ming_init ();
+
+ if (!g_file_get_contents (argv[1], &contents, NULL, &error)) {
+ g_printerr ("%s\n", error->message);
+ g_error_free (error);
+ error = NULL;
+ return 1;
+ }
+ action = newSWFAction (contents);
+ if (SWFAction_compile (action, 8, &len) != 0) {
+ g_printerr ("compilation failed\n");
+ return 1;
+ }
+ data = SWFAction_getByteCode (action, NULL);
+ contents = g_malloc (len + sizeof (H...
2007 Feb 14
0
7 commits - libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_list.c test/swfedit_tag.c test/swfedit_token.c test/swfedit_token.h test/swfscript.c
...x, options, "options");
+ g_option_context_add_group (ctx, gtk_get_option_group (TRUE));
+ g_option_context_parse (ctx, &argc, &argv, &error);
+ g_option_context_free (ctx);
+ if (error) {
+ g_printerr ("error parsing arguments: %s\n", error->message);
+ g_error_free (error);
+ return 1;
+ }
+
+ if (argc < 2) {
+ g_printerr ("Usage: %s FILENAME [OUTPUT-FILENAME]\n", argv[0]);
+ return 1;
+ }
+ if (add_trace_s) {
+ add_trace = string_to_action_list (add_trace_s);
+ g_free (add_trace_s);
+ if (add_trace == NULL)
+ return 1;...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...uot;Run a Flash file trying to crash Swfdec");
- g_option_context_add_main_entries (context, entries, NULL);
-
- if (g_option_context_parse (context, &argc, &argv, &err) == FALSE) {
- g_printerr ("Couldn't parse command-line options: %s\n", err->message);
- g_error_free (err);
- return 1;
- }
-
- if (filenames == NULL || g_strv_length (filenames) < 1) {
- g_printerr ("At least one input filename is required\n");
- return 1;
- }
-
- // make them milliseconds
- play_per_file *= 1000;
- max_per_file *= 1000;
- max_per_advance *= 1000;
-
-...
2007 Aug 02
0
15 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_file_loader.c libswfdec/swfdec_file_loader.h
...ave hostnames");
+ return;
+ }
+
+ /* FIXME: append query string here? */
+ real = g_strconcat ("/", swfdec_url_get_path (url), NULL);
+ buffer = swfdec_buffer_new_from_file (real, &error);
+ if (buffer == NULL) {
+ swfdec_loader_error (loader, error->message);
+ g_error_free (error);
+ } else {
+ swfdec_loader_set_size (loader, buffer->length);
+ swfdec_loader_open (loader, 0);
+ swfdec_loader_push (loader, buffer);
+ swfdec_loader_eof (loader);
+ }
+}
+
+static void
+swfdec_file_loader_class_init (SwfdecFileLoaderClass *klass)
+{
+ SwfdecLoaderClass...
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
...env ("SWFDEC_TEST_THREADS")) {
+ pool = g_thread_pool_new (run_test, NULL, -1, FALSE, &error);
+ if (pool == NULL) {
+ g_print (" WARNING: Could not start thread pool: %s\n", error->message);
+ g_print (" WARNING: testing unthreaded\n");
+ g_error_free (error);
+ error = NULL;
+ }
+ } else {
+ pool = NULL;
+ }
+ if (pool == NULL) {
+ for (walk = tests; walk; walk = walk->next) {
+ Test *test = walk->data;
+
+ run_test (test, NULL);
+ g_print (test->output);
+ if (!test->success) {
+ failures+...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...g_free (cur);
}
SWFDEC_FILE_LOADER (loader)->dir = g_path_get_dirname (loader->url);
- swfdec_loader_set_size (loader, buf->length);
- swfdec_loader_push (loader, buf);
- swfdec_loader_eof (loader);
+ if (buf == NULL) {
+ swfdec_loader_error (loader, error->message);
+ g_error_free (error);
+ } else {
+ swfdec_loader_set_size (loader, buf->length);
+ swfdec_loader_push (loader, buf);
+ swfdec_loader_eof (loader);
+ }
return loader;
}
diff --git a/libswfdec/swfdec_loader.h b/libswfdec/swfdec_loader.h
index 482c810..b64c9a4 100644
--- a/libswfdec/swfdec_load...
2018 May 15
12
[PATCH libldm 00/12] New API: an ability to retrieve created device-mapper devices back after they have been created.
The main goal of these patch series is to implement a new API that allows to retrieve created device-mapper devices for volumes and partitions back after they have been created.
As part of this patch:
- required libdevmapper version was bumped to 1.02. I think it is safe because it was released more then 10 years ago;
- newer version of libdevmapper allowed to simplify code base a little bit;
-
2007 Nov 01
0
4 commits - libswfdec/swfdec_sound_object.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/crashfinder.c test/Makefile.am
...uot;Run a Flash file trying to crash Swfdec");
+ g_option_context_add_main_entries (context, entries, NULL);
+
+ if (g_option_context_parse (context, &argc, &argv, &err) == FALSE) {
+ g_printerr ("Couldn't parse command-line options: %s\n", err->message);
+ g_error_free (err);
+ return 1;
+ }
+
+ if (filenames == NULL || g_strv_length (filenames) < 1) {
+ g_printerr ("At least one input filename is required\n");
+ return 1;
+ }
+
+ // make them milliseconds
+ play_per_file *= 1000;
+ max_per_file *= 1000;
+ max_per_advance *= 1000;
+
+...
2007 Aug 02
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_file_loader.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h player/swfdec_slow_loader.c
...l);
- g_assert (loader->url);
- g_free (url);
+ url = swfdec_url_new (url_string);
+ g_free (url_string);
+ loader = g_object_new (SWFDEC_TYPE_FILE_LOADER, "url", url, NULL);
+ swfdec_url_free (url);
if (buf == NULL) {
swfdec_loader_error (loader, error->message);
g_error_free (error);
diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index ae4992d..4be84d1 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -89,7 +89,8 @@ enum {
PROP_EOF,
PROP_DATA_TYPE,
PROP_SIZE,
- PROP_LOADED
+ PROP_LOADED,
+ PROP_URL
};
G_DEFINE...
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
...ate (surface);
+ swfdec_player_render (player, cr, 0, 0, w, h);
+ cairo_destroy (cr);
+ if (!image_diff (surface, filename)) {
+ cairo_surface_destroy (surface);
+ goto error;
+ }
+ cairo_surface_destroy (surface);
+ g_object_unref (player);
+ return TRUE;
+
+error:
+ if (error)
+ g_error_free (error);
+ if (player)
+ g_object_unref (player);
+ return FALSE;
+}
+
+int
+main (int argc, char **argv)
+{
+ guint failed_tests = 0;
+
+ swfdec_init ();
+
+ if (argc > 1) {
+ int i;
+ for (i = 1; i < argc; i++) {
+ if (!run_test (argv[i]))
+ failed_tests++;
+ }
+ } el...
2007 Mar 20
0
5 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_net_stream.c
...t_class, PROP_SIZE,
+ g_param_spec_ulong ("size", "size", "amount of bytes in loader",
+ 0, G_MAXULONG, 0, G_PARAM_READWRITE));
}
static void
@@ -221,6 +232,7 @@ swfdec_file_loader_load (SwfdecLoader *l
swfdec_loader_error (ret, error->message);
g_error_free (error);
} else {
+ swfdec_loader_set_size (ret, buffer->length);
swfdec_loader_push (ret, buffer);
swfdec_loader_eof (ret);
}
@@ -324,6 +336,7 @@ swfdec_loader_new_from_file (const char
g_free (cur);
}
SWFDEC_FILE_LOADER (loader)->dir = g_path_get_dirname (load...
2008 Jan 14
0
8 commits - player/swfdec-player.c player/swfdec-player.ui player/swfdec-window.c player/swfdec-window-handlers.c
..._context_parse (ctx, &argc, &argv, &error);
g_option_context_free (ctx);
if (error) {
- g_printerr ("Error parsing command line arguments: %s\n", error->message);
+ g_printerr (_("Error parsing command line arguments: %s\n"), error->message);
g_error_free (error);
return EXIT_FAILURE;
}
2007 Mar 14
0
10 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loadertarget.c
...eal_path = g_build_filename (SWFDEC_FILE_LOADER (loader)->dir, url, NULL);
buffer = swfdec_buffer_new_from_file (real_path, &error);
- if (buffer == NULL) {
- SWFDEC_ERROR ("Couldn't load \"%s\": %s", real_path, error->message);
- g_free (real_path);
- g_error_free (error);
- return NULL;
- }
ret = g_object_new (SWFDEC_TYPE_FILE_LOADER, NULL);
ret->url = real_path;
SWFDEC_FILE_LOADER (ret)->dir = g_strdup (SWFDEC_FILE_LOADER (loader)->dir);
- swfdec_loader_push (ret, buffer);
- swfdec_loader_eof (ret);
+ if (buffer == NULL) {
+ swf...
2007 Jul 31
0
10 commits - doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_buffer.c libswfdec/swfdec_debugger.c libswfdec/swfdec.h
...ME: append query string here? */
+ real = g_strconcat ("/", swfdec_url_get_path (url), NULL);
+ buffer = swfdec_buffer_new_from_file (real, &error);
if (buffer == NULL) {
- swfdec_loader_error (ret, error->message);
+ swfdec_loader_error (loader, error->message);
g_error_free (error);
} else {
- swfdec_loader_set_size (ret, buffer->length);
- swfdec_loader_push (ret, buffer);
- swfdec_loader_eof (ret);
+ swfdec_loader_set_size (loader, buffer->length);
+ swfdec_loader_push (loader, buffer);
+ swfdec_loader_eof (loader);
}
-
- return ret;...
2016 Nov 25
0
Wine release 1.9.24
...oder: Always pass non-NULL preferred allocator to IAsyncReader::RequestAllocator.
Alex Henrie (3):
winegstreamer: Fix memory leaks in amt_from_gst_caps_video.
winegstreamer: If no audio media type was allocated, don't free it.
winegstreamer: Remove redundant null check before g_error_free.
Alexandre Julliard (1):
configure: Add fallback link command line for libudev.
Alistair Leslie-Hughes (1):
dpnet: Header files cleanup.
Andrey Gusev (10):
api-ms-win-security-lsalookup-l2-1-1: Add dll.
api-ms-win-security-lsapolicy-l1-1-0: Add dll.
make_specfiles:...
2007 Aug 01
0
9 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_loadertarget.c libswfdec/swfdec_loadertarget.h libswfdec/swfdec_movie.c
...) && !loader->eof)
- swfdec_loader_eof (loader);
- break;
case PROP_SIZE:
if (loader->size == 0 && g_value_get_ulong (value) > 0)
swfdec_loader_set_size (loader, g_value_get_ulong (value));
@@ -224,6 +220,7 @@ swfdec_file_loader_load (SwfdecLoader *l
g_error_free (error);
} else {
swfdec_loader_set_size (loader, buffer->length);
+ swfdec_loader_open (loader, 0);
swfdec_loader_push (loader, buffer);
swfdec_loader_eof (loader);
}
@@ -244,6 +241,22 @@ swfdec_file_loader_init (SwfdecFileLoade
/*** INTERNAL API ***/
+static void
+...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...--- a/test/swfedit.c
+++ b/test/swfedit.c
@@ -27,12 +27,26 @@
static void
save (GtkButton *button, SwfeditFile *file)
{
+ GtkWidget *dialog;
GError *error = NULL;
- if (!swfedit_file_save (file, &error)) {
- g_printerr ("Error saving fils: %s\n", error->message);
- g_error_free (error);
+ dialog = gtk_file_chooser_dialog_new ("Save file...",
+ GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (button))),
+ GTK_FILE_CHOOSER_ACTION_SAVE,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_SAVE, GTK_RESPONSE_OK,
+ NULL);
+ gtk_file_choose...
2007 Sep 03
0
4 commits - libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_interpret.c test/trace
...Author: Benjamin Otte <otte at gnome.org>
Date: Mon Sep 3 17:34:36 2007 +0200
fix memleak
diff --git a/test/trace/trace.c b/test/trace/trace.c
index f42fb0f..bd31799 100644
--- a/test/trace/trace.c
+++ b/test/trace/trace.c
@@ -175,6 +175,7 @@ run_test (gpointer testp, gpointer unuse
g_error_free (error);
} else {
g_string_append (output, result);
+ g_free (result);
}
}
g_string_free (string, TRUE);