core: Fix insane memory usage on ImportResource
core: Fix insane memory usage on ImportResource

jku/rygel,Pelagicore/Media-Manager-Rygel-patched,Tarnyko/rygel,GNOME/rygel,GNOME/rygel,Pelagicore/Media-Manager-Rygel-patched,Pelagicore/Media-Manager-Rygel-patched,jku/rygel,Tarnyko/rygel,GNOME/rygel,luisbg/rygel