diff options
author | Ignacio Casal Quinteiro <icq@gnome.org> | 2015-01-08 12:23:17 +0100 |
---|---|---|
committer | Ignacio Casal Quinteiro <icq@gnome.org> | 2015-01-08 12:23:17 +0100 |
commit | 7f2788455392c6c4e89b33f256f571e5da3a1922 (patch) | |
tree | e85d55f40253ffb67676cf146273f95b71d977a1 /gusb | |
parent | ffe7d790e778f52e62c72b536eaa9140bf3b5e40 (diff) | |
download | gusb-7f2788455392c6c4e89b33f256f571e5da3a1922.tar.gz |
Do not use the cleanup attribute in the unit tests
Diffstat (limited to 'gusb')
-rw-r--r-- | gusb/gusb-self-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gusb/gusb-self-test.c b/gusb/gusb-self-test.c index 5eaee0a..05905cd 100644 --- a/gusb/gusb-self-test.c +++ b/gusb/gusb-self-test.c @@ -23,7 +23,6 @@ #include <glib-object.h> -#include "gusb-cleanup.h" #include "gusb-context.h" #include "gusb-context-private.h" #include "gusb-device.h" @@ -56,7 +55,7 @@ gusb_device_func (void) static void gusb_context_lookup_func (void) { - _cleanup_object_unref_ GUsbContext *ctx = NULL; + GUsbContext *ctx = NULL; GError *error = NULL; const gchar *tmp; @@ -70,6 +69,7 @@ gusb_context_lookup_func (void) tmp = _g_usb_context_lookup_product (ctx, 0x04d8, 0xf8da, &error); g_assert_no_error (error); g_assert_cmpstr (tmp, ==, "Hughski Ltd. ColorHug"); + g_object_unref (ctx); } static void |