summaryrefslogtreecommitdiff
path: root/contrib/gen-dbus-gobject.pl
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gen-dbus-gobject.pl')
-rwxr-xr-xcontrib/gen-dbus-gobject.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/gen-dbus-gobject.pl b/contrib/gen-dbus-gobject.pl
index ae66cf5..fa86326 100755
--- a/contrib/gen-dbus-gobject.pl
+++ b/contrib/gen-dbus-gobject.pl
@@ -327,8 +327,8 @@ sub generate_source {
#include <config.h>
#endif
-#include <glib.h>
#include <string.h>
+#include <glib.h>
#include "../dbus-common.h"
#include "../marshallers.h"
@@ -433,6 +433,9 @@ static void {\$object}_init({\$Object} *self)
{
self->priv = {\$OBJECT}_GET_PRIVATE(self);
+ /* DBusGProxy init */
+ self->priv->dbus_g_proxy = NULL;
+
{IF_ASYNC_CALLS}
/* Async calls init */
{PRIV_ASYNC_CALLS_INIT}