<br><br><div class="gmail_quote">On Tue, Jan 3, 2012 at 4:22 PM, Zeeshan Ali (Khattak) <span dir="ltr"><<a href="mailto:zeeshanak@gnome.org">zeeshanak@gnome.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Jan 3, 2012 at 5:08 PM, Zeeshan Ali (Khattak)<br>
<<a href="mailto:zeeshanak@gnome.org">zeeshanak@gnome.org</a>> wrote:<br>
</div><div class="im">> From: "Zeeshan Ali (Khattak)" <<a href="mailto:zeeshanak@gnome.org">zeeshanak@gnome.org</a>><br>
</div><div class="im">> +    res = g_simple_async_result_new(G_OBJECT(dom),<br>
> +                                    callback,<br>
> +                                    user_data,<br>
> +                                    gvir_domain_saved_suspend);<br>
> +    g_simple_async_result_set_op_res_gpointer (res, data, NULL);<br>
<br>
</div>  The reason I'm not using destroy notify argument here is that I<br>
can't: g_slice_free*() takes 2 arguments and thats not what<br>
DestroyNotify expects. I could write a wrapper function but I don't<br>
see the point.</blockquote><div><br></div><div>Oh, I see. Perhaps we don't need gslice then. fyi, none of the gio data structs used in this case are allocated with gslice  .</div><div><br></div><div>Tbh, I think it's better having the small wrapper if we keep gslice.</div>
<div><br></div></div>-- <br>Marc-André Lureau<br>