Revision b9c411db6d7058f65c3e497f8fc74f2ead9da827
wabz at pidgin.im
wabz at pidgin.im
Wed Mar 28 22:36:33 EDT 2007
o -----------------------------------------------------------------
| Revision: b9c411db6d7058f65c3e497f8fc74f2ead9da827
| Ancestor: ba0d1f6c0eed6247cd7b921eb621b9f02ae4486b
| Author: wabz at pidgin.im
| Date: 2007-03-29T02:35:54
| Branch: im.pidgin.pidgin
|
| Modified files:
| finch/gntft.c finch/libgnt/gntfilesel.c
| finch/libgnt/gntstyle.c finch/libgnt/gntwm.c
|
| ChangeLog:
|
| plug some leaks
|
| ============================================================
| --- finch/gntft.c 7d4dcdc04690eb84ee72892284aae27f77e3a1f2
| +++ finch/gntft.c 864f9d8812844753d9295544cf6542f7dc36e16a
| @@ -392,8 +392,6 @@ finch_xfer_dialog_update_xfer(PurpleXfer
| elapsed = (xfer->start_time > 0 ? now - xfer->start_time : 0);
| kbps = (elapsed > 0 ? (kb_sent / elapsed) : 0);
|
| - kbsec = g_strdup_printf(_("%.2f KB/s"), kbps);
| -
| g_return_if_fail(xfer_dialog != NULL);
| g_return_if_fail(xfer != NULL);
|
| @@ -413,6 +411,7 @@ finch_xfer_dialog_update_xfer(PurpleXfer
|
| size_str = purple_str_size_to_units(purple_xfer_get_size(xfer));
| remaining_str = purple_str_size_to_units(purple_xfer_get_bytes_remaining(xfer));
| + kbsec = g_strdup_printf(_("%.2f KB/s"), kbps);
|
| gnt_tree_change_text(GNT_TREE(xfer_dialog->tree), xfer, COLUMN_PROGRESS,
| g_ascii_dtostr(prog_str, sizeof(prog_str), purple_xfer_get_progress(xfer) * 100.));
| @@ -421,6 +420,7 @@ finch_xfer_dialog_update_xfer(PurpleXfer
| gnt_tree_change_text(GNT_TREE(xfer_dialog->tree), xfer, COLUMN_SPEED, kbsec);
| g_free(size_str);
| g_free(remaining_str);
| + g_free(kbsec);
| if (purple_xfer_is_completed(xfer)) {
| gnt_tree_change_text(GNT_TREE(xfer_dialog->tree), xfer, COLUMN_STATUS, _("Finished"));
| gnt_tree_change_text(GNT_TREE(xfer_dialog->tree), xfer, COLUMN_REMAINING, _("Finished"));
| ============================================================
| --- finch/libgnt/gntfilesel.c dd4e0c9f20cb94eb726ae2184c3f55ff207d9f7a
| +++ finch/libgnt/gntfilesel.c d801f524e90a0c44c22a79c05ac0cce584b501e0
| @@ -464,7 +464,7 @@ char *gnt_file_sel_get_selected_file(Gnt
| {
| char *ret;
| if (sel->dirsonly) {
| - ret = g_strdup(g_path_get_dirname(gnt_entry_get_text(GNT_ENTRY(sel->location))));
| + ret = g_path_get_dirname(gnt_entry_get_text(GNT_ENTRY(sel->location)));
| } else {
| ret = g_strdup(gnt_entry_get_text(GNT_ENTRY(sel->location)));
| }
| ============================================================
| --- finch/libgnt/gntstyle.c 45d6e18bd3b1d6dca1574763f50adeceb087b474
| +++ finch/libgnt/gntstyle.c 9963eb5a643bc3c076582a6435cc9e28f4cd5e4b
| @@ -218,9 +218,8 @@ read_general_style(GKeyFile *kfile)
| {
| for (i = 0; styles[i].style; i++)
| {
| - error = NULL;
| str_styles[styles[i].en] =
| - g_key_file_get_string(kfile, "general", styles[i].style, &error);
| + g_key_file_get_string(kfile, "general", styles[i].style, NULL);
| }
| }
| g_strfreev(keys);
| ============================================================
| --- finch/libgnt/gntwm.c a424350366633f33ffa4ff7225435ea40f4a3c7f
| +++ finch/libgnt/gntwm.c 4c3d754a802541ea4706ac907ed7780b8194b5ca
| @@ -246,6 +246,7 @@ read_window_positions(GntWM *wm)
| }
|
| g_free(filename);
| + g_key_file_free(gfile);
| #endif
| }
|
To get the patch for this revision, please do this:
mtn log --last 1 --diffs --from b9c411db6d7058f65c3e497f8fc74f2ead9da827
More information about the Commits
mailing list