search for: g_free

Displaying 20 results from an estimated 274 matches for "g_free".

Did you mean: i_free
2013 Apr 05
0
[PATCHv2 1/2] Xen PV backend (for qemu-upstream-4.2-testing): Move call to bdrv_new from blk_init to blk_connect
...BLOCK_SIZE; + + /* fill info + * blk_connect supplies sector-size and sectors + */ + xenstore_write_be_int(&blkdev->xendev, "feature-barrier", 1); + xenstore_write_be_int(&blkdev->xendev, "info", info); + return 0; + +out_error: + g_free(blkdev->params); + blkdev->params = NULL; + g_free(blkdev->mode); + blkdev->mode = NULL; + g_free(blkdev->type); + blkdev->type = NULL; + g_free(blkdev->dev); + blkdev->dev = NULL; + g_free(blkdev->devtype); + blkdev->devtype = NULL; + ret...
2004 Sep 10
0
http streaming in the xmms plugin
...streaming */ + flac_cfg.stream.http_buffer_size = (gint) GTK_ADJUSTMENT(streaming_size_adj)->value; + flac_cfg.stream.http_prebuffer = (gint) GTK_ADJUSTMENT(streaming_pre_adj)->value; + + flac_cfg.stream.use_proxy = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(streaming_proxy_use)); + g_free(flac_cfg.stream.proxy_host); + flac_cfg.stream.proxy_host = g_strdup(gtk_entry_get_text(GTK_ENTRY(streaming_proxy_host_entry))); + flac_cfg.stream.proxy_port = atoi(gtk_entry_get_text(GTK_ENTRY(streaming_proxy_port_entry))); + + flac_cfg.stream.proxy_use_auth = gtk_toggle_button_get_active(GTK_...
2016 Aug 20
0
[PATCH 2/3] qemu: Implement virtio-pstore device
...tore_file_prefix); idx++) { + if (g_str_has_prefix(name, virtio_pstore_file_prefix[idx])) { + info->type = idx; + name += strlen(virtio_pstore_file_prefix[idx]); + break; + } + } + + if (idx == ARRAY_SIZE(virtio_pstore_file_prefix)) { + g_free(filename); + return NULL; + } + + qemu_strtoull(name, NULL, 0, &info->id); + + info->flags = 0; + if (g_str_has_suffix(name, ".enc.z")) { + info->flags |= VIRTIO_PSTORE_FL_COMPRESSED; + } + + return filename; +} + +static int prefix_idx; +stati...
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; -
2016 Aug 24
2
[PATCH 2/3] qemu: Implement virtio-pstore device
...(g_str_has_prefix(name, virtio_pstore_file_prefix[idx])) { > + info->type = idx; > + name += strlen(virtio_pstore_file_prefix[idx]); > + break; > + } > + } > + > + if (idx == ARRAY_SIZE(virtio_pstore_file_prefix)) { > + g_free(filename); > + return NULL; > + } > + > + qemu_strtoull(name, NULL, 0, &info->id); > + > + info->flags = 0; > + if (g_str_has_suffix(name, ".enc.z")) { > + info->flags |= VIRTIO_PSTORE_FL_COMPRESSED; > + } > + > +...
2016 Aug 24
2
[PATCH 2/3] qemu: Implement virtio-pstore device
...(g_str_has_prefix(name, virtio_pstore_file_prefix[idx])) { > + info->type = idx; > + name += strlen(virtio_pstore_file_prefix[idx]); > + break; > + } > + } > + > + if (idx == ARRAY_SIZE(virtio_pstore_file_prefix)) { > + g_free(filename); > + return NULL; > + } > + > + qemu_strtoull(name, NULL, 0, &info->id); > + > + info->flags = 0; > + if (g_str_has_suffix(name, ".enc.z")) { > + info->flags |= VIRTIO_PSTORE_FL_COMPRESSED; > + } > + > +...
2007 Nov 10
0
[PATCH] swfdec: better variable parsing.
...&& *s <= '9') { - byte = *s - '0'; - } else if (*s >= 'A' && *s <= 'F') { - byte = *s - 'A' + 10; - } else if (*s >= 'a' && *s <= 'f') { - byte = *s - 'a' + 10; - } else { - g_string_free (ret, TRUE); - *out = s; - return NULL; - } - byte *= 16; - s++; - if (*s >= '0' && *s <= '9') { - byte += *s - '0'; - } else if (*s >= 'A' && *s <= 'F') { - byte += *s - 'A' + 10; - } else if...
2016 Nov 10
0
[PATCH 2/3] qemu: Implement virtio-pstore device
...info->type = idx; > > > + name += strlen(virtio_pstore_file_prefix[idx]); > > > + break; > > > + } > > > + } > > > + > > > + if (idx == ARRAY_SIZE(virtio_pstore_file_prefix)) { > > > + g_free(filename); > > > + return NULL; > > > + } > > > + > > > + qemu_strtoull(name, NULL, 0, &info->id); > > > > What if this fails? > > Hmm.. will add a check for return value then. > > > > > > + > > &g...
2009 Jul 23
1
viewer updates for fedora submission
This patchset provides updates to the viewer in preperation for its fedora submission. Included are patches cmd-line parameterizing hostname/user/pass/vm, the addition of a man page, cleanup of the project's structure, and updates to the spec.
2009 Jul 13
0
[PATCH viewer] permit hostname / username / password / vm to be passed in via the cmd line
...static char *uri = NULL; -static char *username = NULL; -static char *password = NULL; static gboolean process_message (struct message *); @@ -396,8 +394,6 @@ process_message (struct message *msg) write_fn_discard_capture_buffer (); if (curl) curl_easy_cleanup (curl); if (uri) g_free (uri); - if (username) g_free (username); - if (password) g_free (password); set_connected (FALSE); set_logged_in (FALSE); return 1; @@ -424,20 +420,11 @@ process_message (struct message *msg) curl = NULL; if (uri) g_free (uri); uri = NULL; - if (username) g_f...
2007 Nov 12
0
2 commits - libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c test/various
...&& *s <= '9') { - byte = *s - '0'; - } else if (*s >= 'A' && *s <= 'F') { - byte = *s - 'A' + 10; - } else if (*s >= 'a' && *s <= 'f') { - byte = *s - 'a' + 10; - } else { - g_string_free (ret, TRUE); - *out = s; - return NULL; - } - byte *= 16; - s++; - if (*s >= '0' && *s <= '9') { - byte += *s - '0'; - } else if (*s >= 'A' && *s <= 'F') { - byte += *s - 'A' + 10; - } else if...
2016 Aug 26
0
[PATCH 2/3] qemu: Implement virtio-pstore device
...le_prefix[idx])) { > > + info->type = idx; > > + name += strlen(virtio_pstore_file_prefix[idx]); > > + break; > > + } > > + } > > + > > + if (idx == ARRAY_SIZE(virtio_pstore_file_prefix)) { > > + g_free(filename); > > + return NULL; > > + } > > + > > + qemu_strtoull(name, NULL, 0, &info->id); > > + > > + info->flags = 0; > > + if (g_str_has_suffix(name, ".enc.z")) { > > + info->flags |= VIRTIO_PSTORE_F...
2007 Jun 06
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_root_sprite.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h libswfdec/swfdec_tag.c
...gt;root_actions[i]; - if (array) { - for (j = 0; j < array->len; j++) { - SwfdecSpriteAction *action = &g_array_index (array, SwfdecSpriteAction, j); - - switch (action->type) { - case SWFDEC_ROOT_ACTION_EXPORT: - { - SwfdecRootExportData *data = action->data; - g_free (data->name); - g_object_unref (data->character); - g_free (data); - } - break; - case SWFDEC_ROOT_ACTION_INIT_SCRIPT: - swfdec_script_unref (action->data); - break; - default: - g_assert_not_reached (); - break; - } - } - g_array_free (array...
2018 May 10
2
[PATCH libldm v3 0/2] Make libldm to parse and return volume GUID.
v2: wrap commit message, "PATCH libldm" prefix. v3: correctly initialize and free GLib resources. The result of this patch might be used by libguestfs to return drive mappings for LDM volumes. Note, that "show volume" ldmtool command already returns hint which is a drive letter assigned by Windows to corresponding volume. But it is not reliable source of information. More
2007 Nov 09
0
10 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_loader.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h
...) >= 0) { if (url[0] == '\0') { - SwfdecMovie *movie = swfdec_player_get_movie_from_string (SWFDEC_PLAYER (cx), target); - if (SWFDEC_IS_SPRITE_MOVIE (movie)) { - char *path = swfdec_movie_get_path (movie, TRUE); - swfdec_player_request_unload (SWFDEC_PLAYER (cx), path); - g_free (path); - } + swfdec_player_request_unload (SWFDEC_PLAYER (cx), target); } else { swfdec_resource_load (SWFDEC_PLAYER (cx), target, url, SWFDEC_LOADER_REQUEST_DEFAULT, NULL, NULL); @@ -1197,12 +1192,7 @@ swfdec_action_get_url2 (SwfdecAsContext *cx, guint action, const gui...
2018 May 14
3
[PATCH libldm v4 0/3] Make libldm to parse and return volume GUID.
v2: wrap commit message, "PATCH libldm" prefix. v3: correctly initialize and free GLib resources. v4: gtk-doc is updated to reflect presence of new volume GUID field. The result of this patch might be used by libguestfs to return drive mappings for LDM volumes. Note, that "show volume" ldmtool command already returns hint which is a drive letter assigned by Windows to
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
...else if (result != GNOME_VFS_OK) { - char *err = g_strdup_printf ("%s: %s", loader->url, + char *err = g_strdup_printf ("%s: %s", + swfdec_url_get_url (swfdec_loader_get_url (loader)), gnome_vfs_result_to_string (result)); swfdec_loader_error (loader, err); g_free (err); @@ -144,7 +145,8 @@ swfdec_gtk_loader_open_cb (GnomeVFSAsync SwfdecLoader *loader = loaderp; if (result != GNOME_VFS_OK) { - char *err = g_strdup_printf ("%s: %s", loader->url, + char *err = g_strdup_printf ("%s: %s", + swfdec_url_get_url (swfdec_loader_g...
2007 Jul 13
0
4 commits - configure.ac libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.h libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h NEWS
...{ - SWFDEC_WARNING ("variables invalid at \"%s\"", variables); - break; - } - if (*variables != '\0' && *variables != '&') { - SWFDEC_WARNING ("variables not delimited with & at \"%s\"", variables); - g_free (name); - g_free (value); - break; - } - string = JS_NewStringCopyZ (script->jscx, value); - if (string == NULL) { - g_free (name); - g_free (value); - SWFDEC_ERROR ("could not create string"); - break; - } - val = STRING_TO_JSVAL (string);...
2007 Nov 10
1
3 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h
...void merge_alpha (SwfdecImage * image, unsigned char *image_data, unsigned char *alpha); @@ -50,10 +51,7 @@ swfdec_image_unload (SwfdecCached *cached) if (image->surface) { cairo_surface_destroy (image->surface); image->surface = NULL; - } else if (image->data) { - g_free (image->data); } - image->data = NULL; } static void @@ -171,25 +169,28 @@ static void swfdec_image_jpeg_load (SwfdecImage *image) { gboolean ret; + guint8 *data; if (image->jpegtables) { ret = swfdec_jpeg_decode_argb ( image->jpegtables->data, image-...
2007 Feb 17
0
8 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_loader.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...{ + SWFDEC_WARNING ("variables invalid at \"%s\"", variables); + break; + } + if (*variables != '&' && *variables != '\0') { + SWFDEC_WARNING ("variables not delimited with & at \"%s\"", variables); + g_free (name); + g_free (value); + break; + } + variables++; + string = JS_NewStringCopyZ (script->jscx, value); + if (string == NULL) { + g_free (name); + g_free (value); + SWFDEC_ERROR ("could not create string"); + break; + } + val = STRING_T...